Skip to content

Commit 98fa7cb

Browse files
committed
Testing matrix pytorch version
1 parent 57d04a8 commit 98fa7cb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
matrix:
1313
os: [ubuntu-latest, macos-latest, windows-latest]
1414
python-version: [3.7, 3.8]
15+
torch-version: [1.10.0, 1.11.0, 1.12.0]
1516
runs-on: ${{ matrix.os }}
1617
steps:
1718
- uses: actions/checkout@v2
@@ -24,12 +25,12 @@ jobs:
2425
python -m pip install --upgrade pip
2526
pip install "numpy<1.20" scikit-learn flake8 setuptools numba==0.49.1
2627
27-
- name: Install torch windows + linux
28+
- name: Install torch ${{ matrix.torch-version }} windows + linux
2829
if: ${{matrix.os != 'macos-latest'}}
29-
run: pip install torch==1.8.0+cpu torchvision==0.9.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
30-
- name: Install torch macos
30+
run: pip install torch==${{ matrix.torch-version }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
31+
- name: Install torch ${{ matrix.torch-version }} macos
3132
if: ${{matrix.os == 'macos-latest'}}
32-
run: pip install torch==1.8.0
33+
run: pip install torch==${{ matrix.torch-version }}
3334

3435
- name: Build package
3536
run: |

0 commit comments

Comments
 (0)