Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
patnr committed Jul 2, 2024
1 parent 7006390 commit b46e4fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ jobs:
- name: Run tests
run: |
if [[ '$JOBTYPE' == 'lint' ]]; then
if [[ "$JOBTYPE" == "lint" ]]; then
# Run flake8 via pre-commit instead.
#- flake8 . # Use --exit-zero to ignore failure
pre-commit install
pre-commit run --all-files
elif [[ '$JOBTYPE' == 'coverage' ]]; then
elif [[ "$JOBTYPE" == "coverage" ]]; then
pytest tests --ignore=dapper/mods/QG --cov=dapper --cov-report term-missing
else
pytest tests
fi
- name: Publish coverage to coveralls.io
if: ${{ env.JOBTYPE == 'coverage' }}
if: ${{ env.JOBTYPE == "coverage" }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github
Expand Down

0 comments on commit b46e4fd

Please sign in to comment.