ci: exclude the E2E tree from unit-test collection
All checks were successful
CI / unit (pull_request) Successful in 29s
CI / backend-e2e (pull_request) Successful in 1m20s
CI / dashboard-e2e (pull_request) Successful in 1m45s

pytest still imports every module to collect it, and -m "not e2e" only filters
execution; the pipeline E2E modules import the pipeline (tqdm/scenedetect/ML)
which is absent from the unit environment. Fixes the CI unit job.
This commit is contained in:
pedro-bento 2026-10-04 22:12:21 +01:00
parent 97f813553d
commit 1551371626

View file

@ -26,7 +26,11 @@ jobs:
- name: Install test dependencies
run: pip install -r requirements-test.txt
- name: Run unit tests
run: pytest tests/ -m "not e2e" -q
# Exclude the E2E tree from *collection*: `-m "not e2e"` only filters
# execution, but pytest still imports every module to collect it, and the
# pipeline E2E modules import the pipeline (tqdm/scenedetect/ML) which is
# intentionally absent from the unit environment.
run: pytest tests/ --ignore=tests/e2e -m "not e2e" -q
# Backend E2E: API + pipeline. ffmpeg/ffprobe must be installed in-job; the
# E2E requirements add pytest-asyncio/asgi-lifespan/pytest-timeout and the