Skip to content

Commit

Permalink
simplify GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
gau-nernst committed Jul 7, 2023
1 parent b076e57 commit 1fe2619
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
strategy:
fail-fast: false
matrix:
pytorch-version: ["1.13.*", "2.0.*"]
pytorch-version: ["1.13", "2.0"]
python-version: ["3.10"]
include:
- pytorch-version: "1.13.*"
torchvision-version: "0.14.*"
- pytorch-version: "2.0.*"
torchvision-version: "0.15.*"
- pytorch-version: "1.13"
torchvision-version: "0.14"
- pytorch-version: "2.0"
torchvision-version: "0.15"

steps:
- name: Checkout
Expand All @@ -30,7 +30,7 @@ jobs:

- name: Install dependencies
run: |
pip install torch==${{ matrix.pytorch-version }} torchvision==${{ matrix.torchvision-version }} --extra-index-url https://download.pytorch.org/whl/cpu
pip install torch==${{ matrix.pytorch-version }}.* torchvision==${{ matrix.torchvision-version }}.* --extra-index-url https://download.pytorch.org/whl/cpu
pip install pytest
- name: Run tests
Expand Down

0 comments on commit 1fe2619

Please sign in to comment.