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 2baa8c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 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
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ deps =
-r tests/requirements/{env_name}.txt
commands =
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run setup.py test
{env:COMMAND:coverage} report -m
{env:COMMAND:coverage} run --parallel-mode setup.py test
{env:COMMAND:coverage} report --show-missing

[testenv:ruff]
deps = ruff
Expand Down

0 comments on commit 2baa8c6

Please sign in to comment.