Skip to content

Commit 59c7067

Browse files
authored
ci: testing minimal requirements & required bumps (#2295)
1 parent 79e8c51 commit 59c7067

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/ci-testing.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
requires: ["latest", "nightly"] # , 'oldest'
3232
suite: ["core", "ops", "grads"]
3333
include:
34+
- { os: "ubuntu-22.04", python-version: "3.10", requires: "oldest", suite: "core" }
35+
- { os: "ubuntu-22.04", python-version: "3.10", requires: "oldest", suite: "ops" }
36+
- { os: "ubuntu-22.04", python-version: "3.10", requires: "oldest", suite: "grads" }
3437
- { os: "ubuntu-24.04", python-version: "3.11", requires: "latest" }
3538
- { os: "ubuntu-24.04", python-version: "3.12", requires: "latest" }
3639
- { os: "ubuntu-24.04", python-version: "3.13", requires: "latest" }
@@ -64,14 +67,13 @@ jobs:
6467
open(fpath, 'w').write(req)
6568
shell: python
6669

67-
- name: switch Torch source
70+
- name: set default Torch source
71+
run: echo "TORCH_URL=$TORCH_URL_STABLE" >> $GITHUB_ENV
72+
- name: switch Torch source to nightly
73+
if: matrix.requires == 'nightly'
6874
run: |
69-
if [[ "${{ matrix.requires }}" == "nightly" ]]; then
70-
echo "TORCH_URL=$TORCH_URL_NIGHTLY" >> $GITHUB_ENV
71-
echo "PIP_EXTRA_FLAG=--pre" >> $GITHUB_ENV
72-
else
73-
echo "TORCH_URL=$TORCH_URL_STABLE" >> $GITHUB_ENV
74-
fi
75+
echo "TORCH_URL=$TORCH_URL_NIGHTLY" >> $GITHUB_ENV
76+
echo "PIP_EXTRA_FLAG=--pre" >> $GITHUB_ENV
7577
7678
- name: Install Mac specific dependencies
7779
if: runner.os == 'macOS'

requirements/base.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
torch >=2.3.0
1+
torch >=2.6.0
22
looseversion ==1.3.0
3-
lightning-utilities >=0.7.0
3+
lightning-utilities >0.7.0
44
numpy
5-
networkx >= 3.3
5+
networkx >=3.3
66
optree >=0.12.1
7-
opt_einsum >= 3.3.0
7+
opt_einsum >=3.3.0
88
# todo: teporarl pin for `NameError: name '_C' is not defined`
99
mpmath <1.4.0
1010
# Support for 3.12

0 commit comments

Comments
 (0)