Skip to content

Commit affee28

Browse files
matsumotosanbhimrazytchaton
authored
Add Python 3.13 to CI (#21360)
* add 3.13 and 3.14 tests * filter numpy warnings * stick to py313 for now * wrap in enum.member * conditionally import enum.member * not it * conditional numpy version * undo * add igonore for future warning * drop pin for numpy * update numpy version * update numpy version * update numpy pin * update * re-trigger ci * re-run to run al missing actions --------- Co-authored-by: bhimrazy <bhimrajyadav977@gmail.com> Co-authored-by: thomas chaton <thomas@grid.ai>
1 parent fd0f86b commit affee28

5 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/ci-tests-fabric.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
- { pkg-name: "fabric", python-version: "3.12", pytorch-version: "2.7" }
5353
- { pkg-name: "fabric", python-version: "3.12", pytorch-version: "2.8" }
5454
- { pkg-name: "fabric", python-version: "3.12", pytorch-version: "2.9" }
55+
- { pkg-name: "fabric", python-version: "3.13", pytorch-version: "2.8" }
5556

5657
# Test minimum supported versions (oldest)
5758
- { pkg-name: "fabric", pytorch-version: "2.1", requires: "oldest" }

.github/workflows/ci-tests-pytorch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
- { pkg-name: "pytorch", python-version: "3.12", pytorch-version: "2.7" }
5757
- { pkg-name: "pytorch", python-version: "3.12", pytorch-version: "2.8" }
5858
- { pkg-name: "pytorch", python-version: "3.12", pytorch-version: "2.9" }
59+
- { pkg-name: "pytorch", python-version: "3.13", pytorch-version: "2.8" }
5960

6061
# Test minimum supported versions (oldest)
6162
- { pkg-name: "pytorch", pytorch-version: "2.1", requires: "oldest" }

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ filterwarnings = [
173173
"error::FutureWarning",
174174
"ignore::FutureWarning:onnxscript", # Temporary ignore until onnxscript is updated
175175
"ignore:You are using `torch.load` with `weights_only=False`.*:FutureWarning",
176+
"ignore::FutureWarning:torch.distributed.algorithms.ddp_comm_hooks",
176177
]
177178
xfail_strict = true
178179
junit_duration_report = "call"

requirements/fabric/test.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
coverage ==7.13.1; python_version >= "3.10"
22
coverage ==7.10.7; python_version < "3.10"
3-
numpy >=1.21.0, <1.27.0
3+
numpy >1.21.0, <1.27.0; python_version < "3.12"
4+
numpy >2.1.0, <2.3.5; python_version >= "3.12"
45
pytest ==9.0.2
56
pytest-cov ==7.0.0
67
pytest-timeout ==2.4.0

requirements/pytorch/test.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ pytest-random-order ==1.2.0
1010
# needed in tests
1111
cloudpickle >=1.3, <3.2.0
1212
scikit-learn >0.22.1, <1.9.0
13-
numpy >1.20.0, <1.27.0
13+
numpy >1.21.0, <1.27.0; python_version < "3.12"
14+
numpy >2.1.0, <2.3.5; python_version >= "3.12"
1415
onnx >1.12.0, <1.21.0
1516
onnxruntime >=1.12.0, <1.24.0
1617
onnxscript >= 0.1.0, < 0.6.0

0 commit comments

Comments
 (0)