Skip to content

Commit

Permalink
Generate coverage in tox run
Browse files Browse the repository at this point in the history
  • Loading branch information
Uli Köhler committed Jul 29, 2023
1 parent e044ecb commit b5a71e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ jobs:
python -m pip install tox tox-gh-actions
- name: Test with tox
run: python -m tox
- name: Generate coverage report
run: |
python -m pip install pytest pytest-cov -r requirements.txt
pytest --cov=./ --cov-report=xml
- name: List files
run: ls -v
- name: Upload coverage to Codecov.io
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ deps =
scipy
commands =
python -m coverage run -p -m pytest
python -m coverage combine
python -m coverage report -m --skip-covered
python -m coverage xml

0 comments on commit b5a71e2

Please sign in to comment.