Skip to content

Commit 622722b

Browse files
committed
Remove duplicate commands block from rebase
Remove the earlier pytest commands block and update the tox 'commands' to run pytest with the marker excluding both 'hardware' and 'dlclive_compat'. Adjust coverage invocation to use the installed package path (--cov={envsitepackagesdir}/dlclivegui) and emit per-env XML coverage files (.coverage.{envname}.xml). This aligns tox behavior with the GitHub Actions job and removes the prior posargs-based command duplication.
1 parent 693c931 commit 622722b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tox.ini

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ description = Unit + smoke tests (exclude hardware) with coverage
1111
package = wheel
1212
extras = test
1313

14-
commands =
15-
pytest -m "not hardware and not dlclive_compat" --maxfail=1 --disable-warnings \
16-
--cov=dlclivegui --cov-report=xml --cov-report=term-missing {posargs}
17-
1814
# Helpful defaults for headless CI runs (Qt/OpenCV):
1915
setenv =
2016
PYTHONWARNINGS = default
@@ -24,9 +20,8 @@ setenv =
2420
OPENCV_VIDEOIO_PRIORITY_MSMF = 0
2521
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
2622

27-
# Keep behavior aligned with your GitHub Actions job:
2823
commands =
29-
pytest -m "not hardware" --maxfail=1 --disable-warnings \
24+
pytest -m "not hardware and not dlclive_compat" --maxfail=1 --disable-warnings \
3025
--cov={envsitepackagesdir}/dlclivegui \
3126
--cov-report=xml:{toxinidir}/.coverage.{envname}.xml \
3227
--cov-report=term-missing \

0 commit comments

Comments
 (0)