Fix GitHub Actions dependencies #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| lightweight: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install CPU PyTorch for checkpoint tests | |
| run: >- | |
| python -m pip install "torch>=2.1,<2.10" | |
| --index-url https://download.pytorch.org/whl/cpu | |
| - name: Install VisionCart test and web dependencies | |
| run: python -m pip install -e ".[dev,web]" | |
| - run: python -m compileall -q src scripts app.py tools | |
| - run: pytest -q |