Skip to content

Commit

Permalink
Try coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBreuling committed Jun 10, 2024
1 parent 7158e8e commit 5320f99
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,27 @@ jobs:
- name: Install test dependencies
run: pip install pytest pytest-cov

- name: Test with pytest
run: pytest ./test/
# - name: Test with pytest
# run: pytest ./test/

- name: Coverage report with pytest-cov
# run: pytest --cov=pydaes
run: pytest --cov=pydaes --cov-report=term --cov-report=lcov --cov-report=xml
# - name: Coverage report with pytest-cov
# # run: pytest --cov=pydaes
# run: pytest --cov=pydaes --cov-report=term --cov-report=lcov --cov-report=xml

- name: Upload coverage data
uses: actions/upload-artifact@v3
- name: Run tests and collect coverage
run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }}

# - name: Upload coverage data
# uses: actions/upload-artifact@v3
# with:
# name: covdata
# path: coverage.xml

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
name: covdata
path: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}



# [![codecov](https://img.shields.io/codecov/c/github/nschloe/meshio.svg?style=flat-square)](https://app.codecov.io/gh/nschloe/meshio)
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@ The tests can be started using

```bash
python -m pytest test/
```
```

###

https://github.com/JonasBreuling/pydaes

[![codecov](https://img.shields.io/codecov/c/github/JonasBreuling/pydaes.svg?style=flat-square)](https://app.codecov.io/gh/JonasBreuling/pydaes)

0 comments on commit 5320f99

Please sign in to comment.