Skip to content

Commit 16e8b27

Browse files
committed
tox.ini: skip install for dlclive-github env
Update dlclive-github testenv to run compatibility tests against GitHub main without installing the local package. Adds a comment explaining the rationale, sets package = skip, adds pytest to deps, and inserts a small diagnostic python command to print the imported dlclive file and deeplabcut-live version before running the compatibility test.
1 parent 0d96b8d commit 16e8b27

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,18 @@ commands =
6363
pytest -m dlclive_compat tests/compat/test_dlclive_package_compat.py -q
6464

6565
# Run locally : tox -e dlclive-github
66+
# These do not need live-GUI so to make sure it is the main version that is tested,
67+
# we skip installing the package (and its DLCLive requirement)
6668
[testenv:dlclive-github]
6769
description = DLCLive compatibility tests against GitHub main
70+
package = skip
6871
passenv =
6972
{[testenv:dlclive]passenv}
7073
deps =
74+
pytest
7175
git+https://github.com/DeepLabCut/DeepLabCut-live.git@main
7276
commands =
77+
python -c "import dlclive, importlib.metadata; print('dlclive:', dlclive.__file__); print('version:', importlib.metadata.version('deeplabcut-live'))"
7378
pytest -m dlclive_compat tests/compat/test_dlclive_package_compat.py -q
7479

7580
[gh-actions]

0 commit comments

Comments
 (0)