Skip to content

Commit cb79b6c

Browse files
committed
ci: use system-wide coverage/pytest-cov
1 parent 6d6fa88 commit cb79b6c

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

tox.ini

+13-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,17 @@ pass_env =
5050
ANSYS_DPF_PATH
5151

5252
deps =
53-
-r requirements/requirements_test.txt
53+
; -r requirements/requirements_test.txt
54+
ansys-platform-instancemanagement==1.1.2
55+
; coverage==7.6.10
56+
imageio==2.36.0
57+
imageio-ffmpeg==0.5.1
58+
pytest==8.3.4
59+
; pytest-cov==6.0.0
60+
pytest-order==1.3.0
61+
pytest-rerunfailures==15.0
62+
pyvista==0.44.2
63+
vtk==9.3.1
5464

5565
[testenv:build-wheel]
5666
description = Environment for custom build of package wheels
@@ -120,9 +130,10 @@ depends = pretest
120130

121131
setenv =
122132
# Pytest extra arguments
123-
COVERAGE = --cov=ansys.dpf.core --log-level=ERROR --cov-append #--cov-report=xml --cov-report=html
133+
COVERAGE = --cov=ansys.dpf.core --cov-report=xml --cov-report=html --log-level=ERROR --cov-append
124134
RERUNS = --reruns=2 --reruns-delay=1
125135
DEBUG = -v -s --durations=10 --durations-min=1.0
136+
VIRTUALENV_SYSTEM_SITE_PACKAGES = true
126137

127138
api: JUNITXML = --junitxml=tests/junit/test-results.xml
128139
launcher: JUNITXML = --junitxml=tests/junit/test-results2.xml
@@ -155,7 +166,6 @@ setenv =
155166
TMP = {env_tmp_dir}
156167

157168
commands =
158-
coverage --version
159169
python -m pytest {env:PYTEST_PYTHON_FILES} {env:DEBUG} {env:RERUNS} {env:JUNITXML} {env:COVERAGE} {posargs}
160170

161171
[testenv:doc-{clean,links,html}]

0 commit comments

Comments
 (0)