Try to force numpy<2.0 for torch 1.13 tests, update newest tested torch to 2.5.1

This commit is contained in:
Ross Wightman 2025-01-28 14:51:25 -08:00
parent b1752eefb5
commit 93f44d1805

View File

@ -17,7 +17,7 @@ jobs:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
python: ['3.10', '3.12'] python: ['3.10', '3.12']
torch: [{base: '1.13.0', vision: '0.14.0'}, {base: '2.4.1', vision: '0.19.1'}] torch: [{base: '1.13.0', vision: '0.14.0'}, {base: '2.5.1', vision: '0.20.1'}]
testmarker: ['-k "not test_models"', '-m base', '-m cfg', '-m torchscript', '-m features', '-m fxforward', '-m fxbackward'] testmarker: ['-k "not test_models"', '-m base', '-m cfg', '-m torchscript', '-m features', '-m fxforward', '-m fxbackward']
exclude: exclude:
- python: '3.12' - python: '3.12'
@ -50,6 +50,9 @@ jobs:
- name: Install requirements - name: Install requirements
run: | run: |
pip install -r requirements.txt pip install -r requirements.txt
- name: Force old numpy for old torch
if: ${{ matrix.torch.base == '1.13.0' }}
run: pip install --upgrade 'numpy<2.0'
- name: Run tests on Windows - name: Run tests on Windows
if: startsWith(matrix.os, 'windows') if: startsWith(matrix.os, 'windows')
env: env: