23
23
- uses : actions/checkout@v4
24
24
- uses : actions/setup-python@v5
25
25
with :
26
- python-version : " 3.12 "
26
+ python-version : " 3.13 "
27
27
- run : python -m pip install --upgrade pip && pip install nox
28
28
- uses : dtolnay/rust-toolchain@stable
29
29
with :
41
41
- uses : actions/checkout@v4
42
42
- uses : actions/setup-python@v5
43
43
with :
44
- python-version : " 3.12 "
44
+ python-version : " 3.13 "
45
45
- name : resolve MSRV
46
46
id : resolve-msrv
47
47
run : echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["package"]["rust-version"])'` >> $GITHUB_OUTPUT
54
54
- uses : actions/checkout@v4
55
55
- uses : actions/setup-python@v5
56
56
with :
57
- python-version : " 3.12 "
57
+ python-version : " 3.13 "
58
58
- uses : obi1kenobi/cargo-semver-checks-action@v2
59
59
60
60
check-msrv :
68
68
components : rust-src
69
69
- uses : actions/setup-python@v5
70
70
with :
71
- python-version : " 3.12 "
71
+ python-version : " 3.13 "
72
72
- uses : Swatinem/rust-cache@v2
73
73
with :
74
74
save-if : ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
@@ -153,7 +153,7 @@ jobs:
153
153
components : clippy,rust-src
154
154
- uses : actions/setup-python@v5
155
155
with :
156
- python-version : " 3.12 "
156
+ python-version : " 3.13 "
157
157
architecture : ${{ matrix.platform.python-architecture }}
158
158
- uses : Swatinem/rust-cache@v2
159
159
with :
@@ -181,7 +181,7 @@ jobs:
181
181
fail-fast : ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
182
182
matrix :
183
183
rust : [stable]
184
- python-version : ["3.12 "]
184
+ python-version : ["3.13 "]
185
185
platform : [
186
186
{
187
187
os : " macos-latest" , # first available arm macos runner
@@ -218,7 +218,7 @@ jobs:
218
218
# Test nightly Rust on PRs so that PR authors have a chance to fix nightly
219
219
# failures, as nightly does not block merge.
220
220
- rust : nightly
221
- python-version : " 3.12 "
221
+ python-version : " 3.13 "
222
222
platform :
223
223
{
224
224
os : " ubuntu-latest" ,
@@ -279,7 +279,7 @@ jobs:
279
279
include :
280
280
# Test minimal supported Rust version
281
281
- rust : ${{ needs.resolve.outputs.MSRV }}
282
- python-version : " 3.12 "
282
+ python-version : " 3.13 "
283
283
platform :
284
284
{
285
285
os : " ubuntu-latest" ,
@@ -289,7 +289,7 @@ jobs:
289
289
290
290
# Test the `nightly` feature
291
291
- rust : nightly
292
- python-version : " 3.12 "
292
+ python-version : " 3.13 "
293
293
platform :
294
294
{
295
295
os : " ubuntu-latest" ,
@@ -299,7 +299,7 @@ jobs:
299
299
300
300
# Run rust beta to help catch toolchain regressions
301
301
- rust : beta
302
- python-version : " 3.12 "
302
+ python-version : " 3.13 "
303
303
platform :
304
304
{
305
305
os : " ubuntu-latest" ,
@@ -309,15 +309,15 @@ jobs:
309
309
310
310
# Test 32-bit Windows and x64 macOS only with the latest Python version
311
311
- rust : stable
312
- python-version : " 3.12 "
312
+ python-version : " 3.13 "
313
313
platform :
314
314
{
315
315
os : " windows-latest" ,
316
316
python-architecture : " x86" ,
317
317
rust-target : " i686-pc-windows-msvc" ,
318
318
}
319
319
- rust : stable
320
- python-version : " 3.12 "
320
+ python-version : " 3.13 "
321
321
platform :
322
322
{
323
323
os : " macos-13" ,
@@ -408,9 +408,7 @@ jobs:
408
408
- uses : actions/checkout@v4
409
409
- uses : actions/setup-python@v5
410
410
with :
411
- # FIXME valgrind detects an issue with Python 3.12.5, needs investigation
412
- # whether it's a PyO3 issue or upstream CPython.
413
- python-version : " 3.12.4"
411
+ python-version : " 3.13"
414
412
- uses : Swatinem/rust-cache@v2
415
413
with :
416
414
save-if : ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
@@ -431,7 +429,7 @@ jobs:
431
429
- uses : actions/checkout@v4
432
430
- uses : actions/setup-python@v5
433
431
with :
434
- python-version : " 3.12 "
432
+ python-version : " 3.13 "
435
433
- uses : Swatinem/rust-cache@v2
436
434
with :
437
435
save-if : ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
@@ -453,7 +451,7 @@ jobs:
453
451
- uses : actions/checkout@v4
454
452
- uses : actions/setup-python@v5
455
453
with :
456
- python-version : " 3.12 "
454
+ python-version : " 3.13 "
457
455
- uses : Swatinem/rust-cache@v2
458
456
with :
459
457
save-if : ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
@@ -474,7 +472,7 @@ jobs:
474
472
- uses : actions/checkout@v4
475
473
- uses : actions/setup-python@v5
476
474
with :
477
- python-version : " 3.12 "
475
+ python-version : " 3.13 "
478
476
- uses : Swatinem/rust-cache@v2
479
477
with :
480
478
save-if : ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
@@ -500,7 +498,7 @@ jobs:
500
498
- uses : actions/checkout@v4
501
499
- uses : actions/setup-python@v5
502
500
with :
503
- # TODO bump emscripten builds to test on 3.12
501
+ # TODO bump emscripten builds to test on 3.13
504
502
python-version : 3.11
505
503
id : setup-python
506
504
- name : Install Rust toolchain
@@ -622,7 +620,7 @@ jobs:
622
620
- uses : actions/checkout@v4
623
621
- uses : actions/setup-python@v5
624
622
with :
625
- python-version : " 3.12 "
623
+ python-version : " 3.13 "
626
624
- uses : Swatinem/rust-cache@v2
627
625
with :
628
626
save-if : ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
@@ -646,7 +644,7 @@ jobs:
646
644
- uses : actions/checkout@v4
647
645
- uses : actions/setup-python@v5
648
646
with :
649
- python-version : " 3.12 "
647
+ python-version : " 3.13 "
650
648
- uses : Swatinem/rust-cache@v2
651
649
with :
652
650
save-if : ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
@@ -672,17 +670,17 @@ jobs:
672
670
# ubuntu "cross compile" to itself
673
671
- os : " ubuntu-latest"
674
672
target : " x86_64-unknown-linux-gnu"
675
- flags : " -i python3.12 "
673
+ flags : " -i python3.13 "
676
674
manylinux : auto
677
675
# ubuntu x86_64 -> aarch64
678
676
- os : " ubuntu-latest"
679
677
target : " aarch64-unknown-linux-gnu"
680
- flags : " -i python3.12 "
678
+ flags : " -i python3.13 "
681
679
manylinux : auto
682
680
# ubuntu x86_64 -> windows x86_64
683
681
- os : " ubuntu-latest"
684
682
target : " x86_64-pc-windows-gnu"
685
- flags : " -i python3.12 --features generate-import-lib"
683
+ flags : " -i python3.13 --features generate-import-lib"
686
684
# macos x86_64 -> aarch64
687
685
- os : " macos-13" # last x86_64 macos runners
688
686
target : " aarch64-apple-darwin"
@@ -692,12 +690,12 @@ jobs:
692
690
# windows x86_64 -> aarch64
693
691
- os : " windows-latest"
694
692
target : " aarch64-pc-windows-msvc"
695
- flags : " -i python3.12 --features generate-import-lib"
693
+ flags : " -i python3.13 --features generate-import-lib"
696
694
steps :
697
695
- uses : actions/checkout@v4
698
696
- uses : actions/setup-python@v5
699
697
with :
700
- python-version : " 3.12 "
698
+ python-version : " 3.13 "
701
699
- uses : Swatinem/rust-cache@v2
702
700
with :
703
701
workspaces : examples/maturin-starter
@@ -727,7 +725,7 @@ jobs:
727
725
- uses : actions/checkout@v4
728
726
- uses : actions/setup-python@v5
729
727
with :
730
- python-version : " 3.12 "
728
+ python-version : " 3.13 "
731
729
- uses : Swatinem/rust-cache@v2
732
730
with :
733
731
workspaces : examples/maturin-starter
@@ -749,7 +747,7 @@ jobs:
749
747
cargo build --manifest-path examples/maturin-starter/Cargo.toml --features abi3 --target x86_64-pc-windows-gnu
750
748
cargo xwin build --cross-compiler clang --manifest-path examples/maturin-starter/Cargo.toml --features abi3 --target x86_64-pc-windows-msvc
751
749
# non-abi3
752
- export PYO3_CROSS_PYTHON_VERSION=3.12
750
+ export PYO3_CROSS_PYTHON_VERSION=3.13
753
751
cargo build --manifest-path examples/maturin-starter/Cargo.toml --features generate-import-lib --target x86_64-pc-windows-gnu
754
752
cargo xwin build --cross-compiler clang --manifest-path examples/maturin-starter/Cargo.toml --features generate-import-lib --target x86_64-pc-windows-msvc
755
753
- if : ${{ github.ref == 'refs/heads/main' }}
0 commit comments