Skip to content

Commit

Permalink
[squash] Test minimal coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kralka committed Jan 26, 2024
1 parent b36053a commit 7afb090
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- 'pytest.ini'
pull_request:
types: [opened, synchronize, reopened]
env:
MIN_COVERAGE_REQUIRED: 70
jobs:
unittesting:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -36,4 +38,4 @@ jobs:
coverage run --omit="tests/**/*.py" -m pytest
- name: Report code coverage
run: |
coverage report -i -m
coverage report -i -m --fail-under=$MIN_COVERAGE_REQUIRED

0 comments on commit 7afb090

Please sign in to comment.