ci: install sqlalchemy so the free-plan metering tests can import cloud.metering

This commit is contained in:
juancarlos.cavero 2026-07-20 18:12:33 +02:00
parent a42297f120
commit f68bf12fee

View file

@ -13,11 +13,13 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
# Tests only touch light modules (subtitles/hooks/translate/edit_builder),
# so we install just what they import instead of the full requirements.txt
# (faster-whisper/ultralytics/mediapipe are too heavy for CI).
# Tests only touch light modules (subtitles/hooks/translate/edit_builder
# and the cloud metering helpers), so we install just what they import
# instead of the full requirements.txt (faster-whisper/ultralytics/
# mediapipe are too heavy for CI). sqlalchemy is needed because
# tests/test_metering_free_plan.py imports cloud.metering.
- name: Install test dependencies
run: pip install pytest pillow httpx pydantic
run: pip install pytest pillow httpx pydantic sqlalchemy
- name: Run tests
run: pytest tests/ -v