Skip to content

Commit 95272c2

Browse files
committed
fix: combined coverage report
1 parent 1d2276d commit 95272c2

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

.github/workflows/tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ jobs:
5858
python -m pip install --upgrade pip
5959
pip install tox
6060
- name: Test
61+
if: matrix.config[1] != 'coverage'
6162
run: tox -e ${{ matrix.config[1] }}
6263
- name: Coverage
6364
if: matrix.config[1] == 'coverage'
6465
run: |
66+
tox -e py36,py37,py38,py39,py39-datetime,py310,py311,coverage
6567
pip install coveralls
6668
coveralls --service=github
6769
env:

.meta.toml

+3-12
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,14 @@ testenv-commands = [
3131
"pytest --cov=src --cov=tests --cov-report= {posargs}",
3232
]
3333
coverage-basepython = "python3"
34-
coverage-deps = [
35-
"coverage",
36-
"-cconstraints.txt",
37-
]
3834
coverage-command = [
39-
"mkdir -p {toxinidir}/parts/htmlcov",
40-
"coverage combine",
41-
"coverage html",
42-
"coverage report -m --fail-under=100",
43-
]
35+
"coverage erase",
36+
"coverage combine"
37+
]
4438
coverage-depends = "py36,py37,py38,py39,py39-datetime,py310,py311"
4539
coverage-setenv = [
4640
"COVERAGE_FILE=.coverage",
4741
]
48-
coverage-allowlist_externals = [
49-
"mkdir",
50-
]
5142

5243
[coverage]
5344
fail-under = 100.0

tox.ini

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ envlist =
1111
py310
1212
py311
1313
docs
14-
coverage
1514
py39-datetime
15+
coverage
1616

1717
[testenv]
1818
usedevelop = true
@@ -78,10 +78,8 @@ setenv =
7878
COVERAGE_FILE=.coverage
7979
commands =
8080
mkdir -p {toxinidir}/parts/htmlcov
81-
mkdir -p {toxinidir}/parts/htmlcov
81+
coverage erase
8282
coverage combine
83-
coverage html
84-
coverage report -m --fail-under=100
8583
coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest
8684
coverage html
8785
coverage report -m --fail-under=100.0

0 commit comments

Comments
 (0)