Skip to content

Commit

Permalink
CI: only install CPU wheels for torch
Browse files Browse the repository at this point in the history
  • Loading branch information
ziw-liu committed Feb 24, 2024
1 parent 4fa3844 commit 0e539af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
src: "viscy"

test:
name: Test
needs: [lint]
runs-on: ubuntu-latest
strategy:
Expand All @@ -30,6 +31,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[metrics,dev]"
# Install cpu wheels only to speed up the build
pip install ".[metrics,dev]" --index-url https://download.pytorch.org/whl/cpu
- name: Test with pytest
run: pytest -v

0 comments on commit 0e539af

Please sign in to comment.