Skip to content

Commit ad3d7f0

Browse files
committed
fix(ci): install dependencies for coverage environment
The `cover` environment was failing in CI with a "No such file or directory: 'pytest'" error. This occurred because the environment did not have a `deps` section to install the testing requirements. While this might work locally due to `tox` reusing environments, it fails in a clean CI run. This change adds the required dependencies to the `[testenv:cover]` section, ensuring it is self-contained and runs reliably.
1 parent e1dd715 commit ad3d7f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ deps = -r{toxinidir}/requirements-docs.txt
119119
commands = sphinx-autobuild {env:DOCS_SOURCE} {env:DOCS_BUILD} --open-browser --port 8000
120120

121121
[testenv:cover]
122+
deps = -r{toxinidir}/requirements.txt
123+
-r{toxinidir}/requirements-test.txt
122124
commands =
123125
pytest --cov --cov-report term --cov-report html \
124126
--cov-report xml tests/unit {posargs}

0 commit comments

Comments
 (0)