ci: exclude the E2E tree from unit-test collection
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:
parent
97f813553d
commit
1551371626
1 changed files with 5 additions and 1 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue