@@ -102,7 +102,7 @@ jobs:
102
102
matrix :
103
103
os : [ubuntu-22.04, ubuntu-22.04-arm, windows-2025, macos-15]
104
104
# Test with the oldest supported torch version, the newest two stable/RC.
105
- torch_version : ["2.2.2 ", "2.7.1", "2.8.0"]
105
+ torch_version : ["2.3.1 ", "2.7.1", "2.8.0"]
106
106
include :
107
107
- os : ubuntu-22.04
108
108
arch : x86_64
@@ -118,7 +118,7 @@ jobs:
118
118
arch : arm64
119
119
exclude :
120
120
- os : ubuntu-22.04-arm
121
- torch_version : " 2.2.2 "
121
+ torch_version : " 2.3.1 "
122
122
123
123
runs-on : ${{ matrix.runner || matrix.os }}
124
124
env :
@@ -144,13 +144,14 @@ jobs:
144
144
145
145
- name : Install dependencies
146
146
run : |
147
- pip install torch==${{ matrix.torch_version }} --index-url https://download.pytorch.org/whl/${{ (matrix.torch_version == '2.8.0' && 'test/ cpu') || 'cpu' }}
147
+ pip install torch==${{ matrix.torch_version }} --index-url https://download.pytorch.org/whl/cpu
148
148
pip install -e ".[test]"
149
149
pip install pytest-cov
150
150
151
- # We need to downgrade to numpy<2 for torch<2.3 compatibility.
151
+ # We need to downgrade to numpy<2 for torch<2.4.1 compatibility on Windows
152
+ # See: https://github.com/pytorch/pytorch/issues/131668
152
153
- name : Downgrade NumPy
153
- if : startsWith(matrix.torch_version, '2.2 .')
154
+ if : startsWith(matrix.os, 'windows') && startsWith(matrix. torch_version, '2.3 .')
154
155
run : pip install "numpy<2"
155
156
156
157
- name : Show installed packages
@@ -345,7 +346,7 @@ jobs:
345
346
cuda_version : ["11.8.0", "12.6.3", "12.8.1", "12.9.1"]
346
347
include :
347
348
- cuda_version : " 11.8.0"
348
- torch_version : " 2.2.2 "
349
+ torch_version : " 2.3.1 "
349
350
pypi_index : " https://download.pytorch.org/whl/cu118"
350
351
- cuda_version : " 12.6.3"
351
352
torch_version : " 2.6.0"
@@ -374,7 +375,7 @@ jobs:
374
375
gpu : T4
375
376
runner : CUDA-Windows-x64
376
377
cuda_version : " 11.8.0"
377
- torch_version : " 2.2.0 "
378
+ torch_version : " 2.3.1 "
378
379
pypi_index : " https://download.pytorch.org/whl/cu118"
379
380
- os : windows-2025
380
381
arch : x86_64
@@ -430,12 +431,6 @@ jobs:
430
431
pip install --pre torch~=${{ matrix.torch_version }}.dev0 --index-url ${{ matrix.pypi_index }}
431
432
pip install -e ".[test]"
432
433
pip install pytest-cov
433
-
434
- # We need to downgrade to numpy<2 for torch<2.3 compatibility.
435
- - name : Downgrade NumPy
436
- if : startsWith(matrix.torch_version, '2.2.')
437
- run : pip install "numpy<2"
438
-
439
434
- name : Show installed packages
440
435
run : pip list
441
436
0 commit comments