diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0fd8266..2d0966c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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