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 e691d23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ 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 --start-directory ./test --patern "*.py" > cov.txt
head cov.txt
coverage report -m
coverage xml
Expand Down

0 comments on commit e691d23

Please sign in to comment.