Skip to content

Commit 80e6666

Browse files
committed
Update coverage collection
1 parent 05c28d0 commit 80e6666

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ jobs:
2323
python-version: ${{ matrix.python-version }}
2424

2525
- name: install tests dependencies
26-
run: python -m pip install tox
26+
run: python -m pip install tox coverage[toml]
2727

2828
- name: run Python tests
29-
run: tox -e tests
29+
run: |
30+
tox -e tests
31+
coverage xml
3032
3133
- name: upload to codecov.io
3234
uses: codecov/codecov-action@v5

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ known_first_party = "skmatter"
8686

8787
[tool.pytest.ini_options]
8888
testpaths = ["tests"]
89-
addopts = ["--cov"]
89+
addopts = [
90+
"--cov",
91+
"--cov-append",
92+
"--cov-report=",
93+
"--import-mode=append",
94+
]
9095

9196
[tool.ruff]
9297
exclude = ["docs/src/examples/"]

tox.ini

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ usedevelop = true
3434
changedir = tests
3535
deps =
3636
ase
37-
coverage[toml]
3837
parameterized
3938
pytest
4039
pytest-cov
@@ -47,10 +46,6 @@ commands =
4746
# Run documentation tests
4847
pytest --doctest-modules --pyargs skmatter {posargs}
4948

50-
# after executing the pytest assembles the coverage reports
51-
commands_post =
52-
coverage xml
53-
5449
[testenv:lint]
5550
description = Checks the code and doc for programmatic and stylistic errors
5651
skip_install = true

0 commit comments

Comments
 (0)