Skip to content

Commit 8be06bf

Browse files
committed
Fix GitHub Actions dependencies
1 parent dee2557 commit 8be06bf

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ jobs:
1212
- uses: actions/setup-python@v5
1313
with:
1414
python-version: "3.11"
15-
- run: python -m pip install -e ".[dev]"
15+
- name: Install CPU PyTorch for checkpoint tests
16+
run: >-
17+
python -m pip install "torch>=2.1,<2.10"
18+
--index-url https://download.pytorch.org/whl/cpu
19+
- name: Install VisionCart test and web dependencies
20+
run: python -m pip install -e ".[dev,web]"
1621
- run: python -m compileall -q src scripts app.py tools
1722
- run: pytest -q
18-

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ml = [
2828
]
2929
google = ["gspread>=6", "google-auth>=2.28"]
3030
voice = ["gTTS>=2.5"]
31-
dev = ["pytest>=8", "ruff>=0.6", "httpx>=0.27"]
31+
dev = ["pytest>=8", "ruff>=0.6", "httpx>=0.27", "torch>=2.1,<2.10"]
3232

3333
[project.scripts]
3434
visioncart = "visioncart.app:main"

0 commit comments

Comments
 (0)