Skip to content

Commit fdec6b9

Browse files
committed
Try to force numpy<2.0 for torch 1.13 tests, update newest tested torch to 2.5.1
1 parent b1752ee commit fdec6b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/tests.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
matrix:
1818
os: [ubuntu-latest]
1919
python: ['3.10', '3.12']
20-
torch: [{base: '1.13.0', vision: '0.14.0'}, {base: '2.4.1', vision: '0.19.1'}]
20+
torch: [{base: '1.13.0', vision: '0.14.0'}, {base: '2.5.1', vision: '0.20.1'}]
2121
testmarker: ['-k "not test_models"', '-m base', '-m cfg', '-m torchscript', '-m features', '-m fxforward', '-m fxbackward']
2222
exclude:
2323
- python: '3.12'
@@ -50,6 +50,9 @@ jobs:
5050
- name: Install requirements
5151
run: |
5252
pip install -r requirements.txt
53+
- name: Force old numpy for old torch
54+
if: ${{ matrix.torch == '1.13' }}
55+
run: pip install --upgrade -y 'numpy<2.0'
5356
- name: Run tests on Windows
5457
if: startsWith(matrix.os, 'windows')
5558
env:

0 commit comments

Comments
 (0)