Skip to content

Commit aea426b

Browse files
Conditional install
1 parent e7bf342 commit aea426b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip
2525
pip install numpy scikit-learn flake8 setuptools
26+
- name: Install torch windows + linux
27+
if: ${{matrix.os != 'macos-latest'}}
2628
pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
29+
- name: Install torch macos
30+
if: ${{matrix.os == 'macos-latest'}}
31+
pip install torch
32+
2733
- name: Build package
2834
run: |
2935
python setup.py build_ext --inplace

0 commit comments

Comments
 (0)