Skip to content

Commit ed398d2

Browse files
CI: Test with PyTorch 2.8.0 RC (#1693)
* Add torch 2.8 rc / 2.9 nightly to tests * Update tests.yml * Update tests.yml
1 parent e28d4d9 commit ed398d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ jobs:
101101
fail-fast: false
102102
matrix:
103103
os: [ubuntu-22.04, ubuntu-22.04-arm, windows-2025, macos-15]
104-
# Test with the oldest supported torch version and the two newest.
105-
torch_version: ["2.2.2", "2.6.0", "2.7.1"]
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"]
106106
include:
107107
- os: ubuntu-22.04
108108
arch: x86_64
@@ -144,7 +144,7 @@ jobs:
144144

145145
- name: Install dependencies
146146
run: |
147-
pip install torch==${{ matrix.torch_version }} --index-url https://download.pytorch.org/whl/cpu
147+
pip install torch==${{ matrix.torch_version }} --index-url https://download.pytorch.org/whl/${{ (matrix.torch_version == '2.8.0' && 'test/cpu') || 'cpu' }}
148148
pip install -e ".[test]"
149149
pip install pytest-cov
150150
@@ -372,7 +372,7 @@ jobs:
372372
pypi_index: "https://download.pytorch.org/whl/cu128"
373373
- cuda_version: "12.9.1"
374374
torch_version: "2.8.0"
375-
pypi_index: "https://download.pytorch.org/whl/nightly/cu129"
375+
pypi_index: "https://download.pytorch.org/whl/test/cu129"
376376

377377

378378
# Linux L40S runners

0 commit comments

Comments
 (0)