Skip to content

Commit

Permalink
Run unit tests against pytorch 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gpleiss committed Jan 29, 2025
1 parent 3763b6e commit 2789d18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/run_test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
if [[ ${{ matrix.pytorch-version }} = "latest" ]]; then
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html;
else
pip install torch==1.11+cpu -f https://download.pytorch.org/whl/torch_stable.html;
pip install "numpy<2" # Numpy 2.0 is not fully supported until PyTorch 2.2
pip install torch==2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
fi
pip install -e ".[test]"
- name: Run unit tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run_type_checked_test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
if [[ ${{ matrix.pytorch-version }} = "latest" ]]; then
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
else
pip install "numpy<2" # Numpy 2.0 is not fully supported until PyTorch 2.2
pip install torch==2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install "numpy<2"
fi
pip install -e ".[test]"
- name: Run unit tests
Expand Down

0 comments on commit 2789d18

Please sign in to comment.