Skip to content

Commit 376b08f

Browse files
committed
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.
1 parent a1f49b3 commit 376b08f

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.github/workflows/tox-test.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ jobs:
4545
run: pip install tox
4646
- name: Run Tox
4747
run: tox -e cov
48-
- name: Install pytest cov
49-
run: pip install pytest-cov
50-
- name: Upload coverage to Codecov
51-
uses: codecov/codecov-action@v2
52-
with:
53-
fail_ci_if_error: true
54-
verbose: true
5548
docs:
5649
runs-on: ubuntu-latest
5750
steps:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ deps=
2828
pytest-cov
2929
usedevelop=true
3030
commands=
31-
pytest --cov-report=html --cov-report=xml --cov=src {posargs}
31+
pytest --cov-report=html --cov-report=xml --cov=src --cov-fail-under 100 {posargs}
3232

3333
[testenv:docs]
3434
deps=

0 commit comments

Comments
 (0)