Skip to content

Commit

Permalink
ci: relax coverage requirements down to 95%
Browse files Browse the repository at this point in the history
  • Loading branch information
mogoh committed Aug 10, 2023
1 parent aa69400 commit c917c21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[run]
parallel = True
branch = True
source = djangocms_picture
omit =
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ jobs:
with:
name: coverage-data

- name: Combine coverage and fail if it's <100%
- name: Combine coverage and fail if it's <95%
run: |
python -m coverage combine
python -m coverage html --skip-covered --skip-empty
python -m coverage report --fail-under=100
python -m coverage report --fail-under=95
- name: Upload HTML report
if: ${{ failure() }}
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ deps =
commands =
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run setup.py test
{env:COMMAND:coverage} report -m
{env:COMMAND:coverage} combine --keep
{env:COMMAND:coverage} report --show-missing

[testenv:ruff]
deps = ruff
Expand Down

0 comments on commit c917c21

Please sign in to comment.