Skip to content

Commit

Permalink
[CI] Fix env setup for full job matrix (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc123 authored Oct 11, 2023
1 parent 37d4317 commit 80ea5ce
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/full-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
if [[ "$TORCHVISION_VER" == "latest" && "$PYTORCH_VER" == "latest" ]]; then
conda install pytorch torchvision -c pytorch
conda install pytorch::pytorch torchvision -c pytorch
elif [[ "$TORCHVISION_VER" == "0.9."* || "$TORCHVISION_VER" == "0.10."* ]]; then
conda install pytorch=$PYTORCH_VER torchvision=$TORCHVISION_VER pillow=6 -c pytorch
else
Expand All @@ -61,7 +61,15 @@ jobs:
- name: Install TinyNeuralNetwork
run: python setup.py install
- name: Install test dependencies
run: pip install ruff tensorflow pytest interval scipy
env:
PYTORCH_VER: ${{ matrix.vers.pt_ver }}
TORCHVISION_VER: ${{ matrix.vers.tv_ver }}
run: |
if [[ "$RUNNER_OS" == "Linux" && "$TORCHVISION_VER" == "latest" && "$PYTORCH_VER" == "latest" ]]; then
pip install black 'ruff<0.0.234' 'tensorflow<2.12' pytest scipy interval
else
pip install black 'ruff<0.0.234' tensorflow pytest scipy interval
fi
- name: Lint checks
run: python -m ruff .
- name: Run tests
Expand Down

0 comments on commit 80ea5ce

Please sign in to comment.