chore: don't add torch into dev group #22
Workflow file for this run
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: build | |
| on: | |
| pull_request: | |
| branches: | |
| - "main" | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11.14" | |
| - name: Setup Poetry | |
| uses: abatilo/actions-poetry@v3 | |
| with: | |
| poetry-version: "2.1.3" | |
| - name: Install dependencies | |
| run: |- | |
| poetry install | |
| poetry run pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu | |
| - name: Run tests | |
| run: poetry run python test.py | |
| - name: Run lint | |
| run: python lint.py |