Skip to content

Commit 2789d18

Browse files
committed
Run unit tests against pytorch 2.0
1 parent 3763b6e commit 2789d18

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/run_test_suite.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
if [[ ${{ matrix.pytorch-version }} = "latest" ]]; then
2424
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html;
2525
else
26-
pip install torch==1.11+cpu -f https://download.pytorch.org/whl/torch_stable.html;
26+
pip install "numpy<2" # Numpy 2.0 is not fully supported until PyTorch 2.2
27+
pip install torch==2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
2728
fi
2829
pip install -e ".[test]"
2930
- name: Run unit tests

.github/workflows/run_type_checked_test_suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
if [[ ${{ matrix.pytorch-version }} = "latest" ]]; then
2828
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
2929
else
30+
pip install "numpy<2" # Numpy 2.0 is not fully supported until PyTorch 2.2
3031
pip install torch==2.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
31-
pip install "numpy<2"
3232
fi
3333
pip install -e ".[test]"
3434
- name: Run unit tests

0 commit comments

Comments
 (0)