From 376b08f2bb4bae38a2704ef252c452fac85049b0 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Tue, 21 Jan 2025 14:41:00 +1100 Subject: [PATCH] ci: use "--cov-fail-under 100" rather than codecov Since this project has 100% statement coverage, we can use the simple pytest-cov command-line option to ensure the project retains full coverage on all incoming changes. There is no need to involve a remote service for this. --- .github/workflows/tox-test.yml | 7 ------- tox.ini | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/tox-test.yml b/.github/workflows/tox-test.yml index 3d88ddc..4029958 100644 --- a/.github/workflows/tox-test.yml +++ b/.github/workflows/tox-test.yml @@ -45,13 +45,6 @@ jobs: run: pip install tox - name: Run Tox run: tox -e cov - - name: Install pytest cov - run: pip install pytest-cov - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2 - with: - fail_ci_if_error: true - verbose: true docs: runs-on: ubuntu-latest steps: diff --git a/tox.ini b/tox.ini index 02ff34f..c613ce3 100644 --- a/tox.ini +++ b/tox.ini @@ -28,7 +28,7 @@ deps= pytest-cov usedevelop=true commands= - pytest --cov-report=html --cov-report=xml --cov=src {posargs} + pytest --cov-report=html --cov-report=xml --cov=src --cov-fail-under 100 {posargs} [testenv:docs] deps=