ci: install sqlalchemy so the free-plan metering tests can import cloud.metering
This commit is contained in:
parent
a42297f120
commit
f68bf12fee
1 changed files with 6 additions and 4 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
|
@ -13,11 +13,13 @@ jobs:
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
# Tests only touch light modules (subtitles/hooks/translate/edit_builder),
|
# Tests only touch light modules (subtitles/hooks/translate/edit_builder
|
||||||
# so we install just what they import instead of the full requirements.txt
|
# and the cloud metering helpers), so we install just what they import
|
||||||
# (faster-whisper/ultralytics/mediapipe are too heavy for CI).
|
# 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
|
- name: Install test dependencies
|
||||||
run: pip install pytest pillow httpx pydantic
|
run: pip install pytest pillow httpx pydantic sqlalchemy
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest tests/ -v
|
run: pytest tests/ -v
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue