Skip to content

Commit

Permalink
CI: use unittest directly for python code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Puerling committed Sep 12, 2024
1 parent ee2e68f commit 80958ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coverage run --source spirit --omit=spirit/spiritlib.py setup.py test > cov.txt
coverage run --source spirit --omit=spirit/spiritlib.py \
-m unittest discover \
--start-directory ./test \
--pattern "*.py" \
> cov.txt
head cov.txt
coverage report -m
coverage xml
Expand Down

0 comments on commit 80958ef

Please sign in to comment.