File tree Expand file tree Collapse file tree 4 files changed +7
-25
lines changed
Expand file tree Collapse file tree 4 files changed +7
-25
lines changed Original file line number Diff line number Diff line change 7474 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7575 COVERALLS_FLAG_NAME : ${{ runner.os }} / Python ${{ matrix.python-version }}
7676 COVERALLS_PARALLEL : true
77- # Use cp workaround to publish coverage reports with relative paths
78- # FIXME: Consider refactoring the tests to not require the test
79- # aggregation script being invoked from the `tests` directory, so
80- # that `.coverage` is written to and .coveragrc can also reside in
81- # the project root directory as is the convention.
8277 run : |
83- cp tests/.coverage .
84- coveralls --service=github --rcfile=tests/.coveragerc
78+ coveralls --service=github
8579
8680 coveralls-fin :
8781 # Always run when all 'tests' jobs have finished even if they failed
Original file line number Diff line number Diff line change @@ -153,4 +153,8 @@ exclude_also = [
153153 " raise AssertionError" ,
154154 # imports for mypy only
155155 " if TYPE_CHECKING" ,
156+ ]
157+ [tool .coverage .run ]
158+ omit = [
159+ " tests/*" ,
156160]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ skipsdist = true
1212commands =
1313 python3 --version
1414 python3 -m coverage run -m unittest
15- python3 -m coverage report --rcfile {toxinidir}/pyproject.toml - m --fail-under 97
15+ python3 -m coverage report -m --fail-under 97
1616
1717deps =
1818 -r{toxinidir}/requirements/test.txt
@@ -33,10 +33,9 @@ commands_pre =
3333
3434commands =
3535 python3 -m coverage run -m unittest
36- python3 -m coverage report --rcfile {toxinidir}/pyproject.toml -m
36+ python3 -m coverage report -m
3737
3838[testenv:lint]
39- changedir = {toxinidir}
4039deps =
4140 -r{toxinidir}/requirements/lint.txt
4241 --editable {toxinidir}
@@ -49,7 +48,6 @@ commands =
4948 mypy {[testenv:lint]lint_dirs}
5049
5150[testenv:fix]
52- changedir = {toxinidir}
5351deps = {[testenv:lint]deps}
5452commands =
5553 ruff check --fix {[testenv:lint]lint_dirs}
@@ -59,6 +57,5 @@ commands =
5957deps =
6058 -r{toxinidir}/requirements/docs.txt
6159
62- changedir = {toxinidir}
6360commands =
6461 sphinx-build -b html docs docs/build/html -W
You can’t perform that action at this time.
0 commit comments