Skip to content

Commit

Permalink
Conditional install
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-chaulet committed May 22, 2020
1 parent aea426b commit 28a4e6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install numpy scikit-learn flake8 setuptools
- name: Install torch windows + linux
if: ${{matrix.os != 'macos-latest'}}
pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
run: pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install torch macos
if: ${{matrix.os == 'macos-latest'}}
pip install torch
run: pip install torch

- name: Build package
run: |
Expand Down

0 comments on commit 28a4e6f

Please sign in to comment.