From 2baa8c69c7894e747af36b0a9c018c31944b343e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonhard=20K=C3=BCper?= Date: Thu, 10 Aug 2023 15:48:34 +0200 Subject: [PATCH] ci: relax coverage requirements down to 95% --- .coveragerc | 1 + .github/workflows/test.yml | 5 +++-- tox.ini | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) 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..9c67958 100644 --- a/tox.ini +++ b/tox.ini @@ -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