Files
kinect/conftest.py
T
kinect-bot 30f550e489
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
ci(test): import-guarded conftest + split root/tracker pytest jobs (follow-up 19 done)
2026-11-25 05:48:20 -05:00

21 lines
836 B
Python

"""Root pytest config (plan follow-up todo 19: CI test-path split).
tests/test_tracker.py imports 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
that import, so skip collecting test_tracker.py whenever the tracker's CV
stack isn't importable. Under tracker/.venv the imports succeed and the full
test set (including test_tracker.py) 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"]