Skip to content

Commit

Permalink
Update coverage module
Browse files Browse the repository at this point in the history
  • Loading branch information
soxoj committed Dec 8, 2024
1 parent 1522d87 commit 60c2426
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/coverage-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linting and testing
name: Coverage Test (60% minimum)

on:
push:
Expand All @@ -20,10 +20,10 @@ jobs:
python -m poetry install --with dev
- name: Test with Coverage and Pytest (Fail if coverage is low)
run: |
coverage run --source=./maigret -m pytest tests
poetry run coverage run --source=./maigret -m pytest tests
# Fail if coverage is less than 60%
coverage report --fail-under=60
coverage html
poetry run coverage report --fail-under=60
poetry run coverage html
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 60c2426

Please sign in to comment.