Skip to content

Commit 28a4e6f

Browse files
Conditional install
1 parent aea426b commit 28a4e6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip
2525
pip install numpy scikit-learn flake8 setuptools
26+
2627
- name: Install torch windows + linux
2728
if: ${{matrix.os != 'macos-latest'}}
28-
pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
29+
run: pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
2930
- name: Install torch macos
3031
if: ${{matrix.os == 'macos-latest'}}
31-
pip install torch
32+
run: pip install torch
3233

3334
- name: Build package
3435
run: |

0 commit comments

Comments
 (0)