diff --git a/.coveragerc b/.coveragerc index 7633296..9ad5333 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,4 +1,5 @@ [run] +parallel = True branch = True source = djangocms_picture omit = diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3908435..0f80d38 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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() }} diff --git a/tox.ini b/tox.ini index 5055e5a..20b4d7b 100644 --- a/tox.ini +++ b/tox.ini @@ -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