Files
kinect-bot b4397e6151
ci / Linux C++ core (cmake + ctest) (push) Canceled after 0s
ci / Python root tests (pytest, no tracker deps) (push) Canceled after 0s
ci / Python tracker (pytest, tracker/.venv) (push) Canceled after 0s
fix(qa): conftest root-venv ignore + calibration doc honesty + deterministic player-lost test (final-wave 22/23/24; F1-F4 pass, F5 [~])
2026-11-25 06:25:25 -05:00

22 lines
914 B
Python

"""Root pytest config (plan follow-up todo 19: CI test-path split).
tests/test_tracker.py and tests/test_robustness.py import numpy/cv2/mediapipe,
which live only in tracker/.venv, not the root .venv used for the C-contract
mirror tests (test_contract_py.py, test_record_replay.py, test_smoke.py).
Running bare pytest from the repo root with the root venv must not
collection-error on those imports, so skip collecting any tracker-dependent
test module whenever the tracker's CV stack isn't importable. Under
tracker/.venv the imports succeed and the full test set (including those
two modules) is collected and run normally -- see .github/workflows/ci.yml
for the two separate CI steps.
"""
try:
import cv2 # noqa: F401
import mediapipe # noqa: F401
import numpy # noqa: F401
collect_ignore = []
except ImportError:
collect_ignore = ["tests/test_tracker.py", "tests/test_robustness.py"]