Skip to content

Commit 74be203

Browse files
committed
Skip writing coverage HTML files in CI
1 parent 6bd46a5 commit 74be203

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ jobs:
4040
cpython-beta: "3.14"
4141
pypys:
4242
- "3.11"
43+
tox-skip-environments:
44+
- "coverage-html"
4345
cache-key-hash-files:
4446
- "pyproject.toml"
4547
- "requirements/*/*.txt"
4648
cache-paths:
4749
- ".mypy_cache/"
4850

49-
uses: "kurtmckee/github-workflows/.github/workflows/tox.yaml@ca26472ada33aa277527450aa46436f530e3d2c1" # v1.4
51+
uses: "kurtmckee/github-workflows/.github/workflows/tox.yaml@a8716fc28daeb38133a50ef8dce70df9c65988ad" # v1.5
5052
with:
5153
config: "${{ toJSON(matrix) }}"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Development
2+
-----------
3+
4+
* Skip writing coverage HTML files in CI.

tox.ini

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ envlist =
44
py{3.14, 3.13, 3.12, 3.11, 3.10}
55
pypy{3.11}
66
coverage-report
7+
coverage-html
78
build
89
mypy-py{3.14, 3.13, 3.12, 3.11, 3.10}
910
docs
@@ -23,24 +24,31 @@ deps = -r requirements/test/requirements.txt
2324
commands =
2425
coverage run -m pytest
2526

26-
[testenv:coverage-erase]
27+
[testenv:coverage_base]
2728
deps = -r requirements/test/requirements-coverage.txt
2829
skip_install = true
30+
31+
[testenv:coverage-erase]
32+
base = coverage_base
2933
commands =
3034
coverage erase
3135

32-
[testenv:coverage-report{,-ci}]
36+
[testenv:coverage-report]
37+
base = coverage_base
3338
depends =
3439
py{3.14, 3.13, 3.12, 3.11, 3.10}
3540
pypy{3.11}
36-
deps = -r requirements/test/requirements-coverage.txt
37-
skip_install = true
3841
commands_pre =
3942
- coverage combine
4043
commands =
4144
coverage report
42-
commands_post =
43-
!ci: coverage html --fail-under=0
45+
46+
[testenv:coverage-html]
47+
base = coverage_base
48+
depends =
49+
coverage-report
50+
commands =
51+
coverage html --fail-under=0
4452

4553
[testenv:mypy-py{3.14, 3.13, 3.12, 3.11, 3.10}]
4654
deps = -r requirements/mypy/requirements.txt

0 commit comments

Comments
 (0)