2323 - uses : actions/checkout@v4
2424 - uses : actions/setup-python@v5
2525 with :
26- python-version : ' 3.12'
26+ python-version : " 3.12"
2727 - run : python -m pip install --upgrade pip && pip install nox
2828 - uses : dtolnay/rust-toolchain@stable
2929 with :
@@ -41,11 +41,10 @@ jobs:
4141 - uses : actions/checkout@v4
4242 - uses : actions/setup-python@v5
4343 with :
44- python-version : ' 3.12'
44+ python-version : " 3.12"
4545 - name : resolve MSRV
4646 id : resolve-msrv
47- run :
48- echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["package"]["rust-version"])'` >> $GITHUB_OUTPUT
47+ run : echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["package"]["rust-version"])'` >> $GITHUB_OUTPUT
4948
5049 semver-checks :
5150 if : github.ref != 'refs/heads/main'
5554 - uses : actions/checkout@v4
5655 - uses : actions/setup-python@v5
5756 with :
58- python-version : ' 3.12'
57+ python-version : " 3.12"
5958 - uses : obi1kenobi/cargo-semver-checks-action@v2
6059
6160 check-msrv :
6968 components : rust-src
7069 - uses : actions/setup-python@v5
7170 with :
72- python-version : ' 3.12'
71+ python-version : " 3.12"
7372 - uses : Swatinem/rust-cache@v2
7473 with :
7574 save-if : ${{ github.event_name != 'merge_group' }}
@@ -91,43 +90,44 @@ jobs:
9190 fail-fast : ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
9291 matrix :
9392 rust : [stable]
94- platform : [
95- {
96- os : " macos-latest" ,
97- python-architecture : " arm64" ,
98- rust-target : " aarch64-apple-darwin" ,
99- },
100- {
101- os : " ubuntu-latest" ,
102- python-architecture : " x64" ,
103- rust-target : " x86_64-unknown-linux-gnu" ,
104- },
105- {
106- os : " ubuntu-latest" ,
107- python-architecture : " x64" ,
108- rust-target : " powerpc64le-unknown-linux-gnu" ,
109- },
110- {
111- os : " ubuntu-latest" ,
112- python-architecture : " x64" ,
113- rust-target : " s390x-unknown-linux-gnu" ,
114- },
115- {
116- os : " ubuntu-latest" ,
117- python-architecture : " x64" ,
118- rust-target : " wasm32-wasi" ,
119- },
120- {
121- os : " windows-latest" ,
122- python-architecture : " x64" ,
123- rust-target : " x86_64-pc-windows-msvc" ,
124- },
125- {
126- os : " windows-latest" ,
127- python-architecture : " x86" ,
128- rust-target : " i686-pc-windows-msvc" ,
129- },
130- ]
93+ platform :
94+ [
95+ {
96+ os : " macos-latest" ,
97+ python-architecture : " arm64" ,
98+ rust-target : " aarch64-apple-darwin" ,
99+ },
100+ {
101+ os : " ubuntu-latest" ,
102+ python-architecture : " x64" ,
103+ rust-target : " x86_64-unknown-linux-gnu" ,
104+ },
105+ {
106+ os : " ubuntu-latest" ,
107+ python-architecture : " x64" ,
108+ rust-target : " powerpc64le-unknown-linux-gnu" ,
109+ },
110+ {
111+ os : " ubuntu-latest" ,
112+ python-architecture : " x64" ,
113+ rust-target : " s390x-unknown-linux-gnu" ,
114+ },
115+ {
116+ os : " ubuntu-latest" ,
117+ python-architecture : " x64" ,
118+ rust-target : " wasm32-wasi" ,
119+ },
120+ {
121+ os : " windows-latest" ,
122+ python-architecture : " x64" ,
123+ rust-target : " x86_64-pc-windows-msvc" ,
124+ },
125+ {
126+ os : " windows-latest" ,
127+ python-architecture : " x86" ,
128+ rust-target : " i686-pc-windows-msvc" ,
129+ },
130+ ]
131131 include :
132132 # Run beta clippy as a way to detect any incoming lints which may affect downstream users
133133 - rust : beta
@@ -148,7 +148,7 @@ jobs:
148148 components : clippy,rust-src
149149 - uses : actions/setup-python@v5
150150 with :
151- python-version : ' 3.12'
151+ python-version : " 3.12"
152152 architecture : ${{ matrix.platform.python-architecture }}
153153 - uses : Swatinem/rust-cache@v2
154154 with :
@@ -177,15 +177,14 @@ jobs:
177177 matrix :
178178 rust : [stable]
179179 python-version : ["3.12"]
180- platform :
181- [
180+ platform : [
182181 {
183- os : " macos-latest" , # first available arm macos runner
182+ os : " macos-latest" , # first available arm macos runner
184183 python-architecture : " arm64" ,
185184 rust-target : " aarch64-apple-darwin" ,
186185 },
187186 {
188- os : " macos-13" , # last available x86_64 macos runner
187+ os : " macos-13" , # last available x86_64 macos runner
189188 python-architecture : " x64" ,
190189 rust-target : " x86_64-apple-darwin" ,
191190 },
@@ -234,18 +233,19 @@ jobs:
234233 fail-fast : ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
235234 matrix :
236235 rust : [stable]
237- python-version : [
238- " 3.7" ,
239- " 3.8" ,
240- " 3.9" ,
241- " 3.10" ,
242- " 3.11" ,
243- " 3.12" ,
244- " 3.13" ,
245- " pypy3.9" ,
246- " pypy3.10" ,
247- " graalpy24.0" ,
248- ]
236+ python-version :
237+ [
238+ " 3.7" ,
239+ " 3.8" ,
240+ " 3.9" ,
241+ " 3.10" ,
242+ " 3.11" ,
243+ " 3.12" ,
244+ " 3.13" ,
245+ " pypy3.9" ,
246+ " pypy3.10" ,
247+ " graalpy24.0" ,
248+ ]
249249 platform :
250250 [
251251 {
@@ -389,7 +389,7 @@ jobs:
389389 with :
390390 # FIXME valgrind detects an issue with Python 3.12.5, needs investigation
391391 # whether it's a PyO3 issue or upstream CPython.
392- python-version : ' 3.12.4'
392+ python-version : " 3.12.4"
393393 - uses : Swatinem/rust-cache@v2
394394 with :
395395 save-if : ${{ github.event_name != 'merge_group' }}
@@ -410,7 +410,7 @@ jobs:
410410 - uses : actions/checkout@v4
411411 - uses : actions/setup-python@v5
412412 with :
413- python-version : ' 3.12'
413+ python-version : " 3.12"
414414 - uses : Swatinem/rust-cache@v2
415415 with :
416416 save-if : ${{ github.event_name != 'merge_group' }}
@@ -432,7 +432,7 @@ jobs:
432432 - uses : actions/checkout@v4
433433 - uses : actions/setup-python@v5
434434 with :
435- python-version : ' 3.12'
435+ python-version : " 3.12"
436436 - uses : Swatinem/rust-cache@v2
437437 with :
438438 save-if : ${{ github.event_name != 'merge_group' }}
@@ -442,7 +442,7 @@ jobs:
442442 - run : cargo rustdoc --lib --no-default-features --features full -Zunstable-options --config "build.rustdocflags=[\"--cfg\", \"docsrs\"]"
443443
444444 coverage :
445- if : ${{ github.event_name != 'merge_group' }}
445+ if : ${{ github.event_name != 'merge_group' }}
446446 needs : [fmt]
447447 name : coverage ${{ matrix.os }}
448448 strategy :
@@ -453,7 +453,7 @@ jobs:
453453 - uses : actions/checkout@v4
454454 - uses : actions/setup-python@v5
455455 with :
456- python-version : ' 3.12'
456+ python-version : " 3.12"
457457 - uses : Swatinem/rust-cache@v2
458458 with :
459459 save-if : ${{ github.event_name != 'merge_group' }}
@@ -464,9 +464,9 @@ jobs:
464464 uses : taiki-e/install-action@cargo-llvm-cov
465465 - run : python -m pip install --upgrade pip && pip install nox
466466 - run : nox -s coverage
467- - uses : codecov/codecov-action@v4
467+ - uses : codecov/codecov-action@v5
468468 with :
469- file : coverage.json
469+ files : coverage.json
470470 name : ${{ matrix.os }}
471471 token : ${{ secrets.CODECOV_TOKEN }}
472472
@@ -552,11 +552,11 @@ jobs:
552552
553553 test-free-threaded :
554554 needs : [fmt]
555- name : Free threaded tests - ${{ matrix.runner }}
556- runs-on : ${{ matrix.runner }}
555+ name : Free threaded tests - ${{ matrix.os }}
556+ runs-on : ${{ matrix.os }}
557557 strategy :
558558 matrix :
559- runner : ["ubuntu-latest", "macos-latest", "windows-latest"]
559+ os : ["ubuntu-latest", "macos-latest", "windows-latest"]
560560 steps :
561561 - uses : actions/checkout@v4
562562 - uses : Swatinem/rust-cache@v2
@@ -568,7 +568,7 @@ jobs:
568568 # TODO: replace with actions/setup-python when there is support
569569 - uses : quansight-labs/setup-python@v5.3.1
570570 with :
571- python-version : ' 3.13t'
571+ python-version : " 3.13t"
572572 - name : Install cargo-llvm-cov
573573 uses : taiki-e/install-action@cargo-llvm-cov
574574 - run : python3 -m sysconfig
@@ -582,10 +582,10 @@ jobs:
582582 - name : Generate coverage report
583583 run : nox -s generate-coverage-report
584584 - name : Upload coverage report
585- uses : codecov/codecov-action@v4
585+ uses : codecov/codecov-action@v5
586586 with :
587- file : coverage.json
588- name : test-free-threaded
587+ files : coverage.json
588+ name : ${{ matrix.os }}- test-free-threaded
589589 token : ${{ secrets.CODECOV_TOKEN }}
590590
591591 test-version-limits :
@@ -596,7 +596,7 @@ jobs:
596596 - uses : actions/checkout@v4
597597 - uses : actions/setup-python@v5
598598 with :
599- python-version : ' 3.12'
599+ python-version : " 3.12"
600600 - uses : Swatinem/rust-cache@v2
601601 with :
602602 save-if : ${{ github.event_name != 'merge_group' }}
@@ -620,7 +620,7 @@ jobs:
620620 - uses : actions/checkout@v4
621621 - uses : actions/setup-python@v5
622622 with :
623- python-version : ' 3.12'
623+ python-version : " 3.12"
624624 - uses : Swatinem/rust-cache@v2
625625 with :
626626 save-if : ${{ github.event_name != 'merge_group' }}
@@ -659,7 +659,7 @@ jobs:
659659 flags : " -i python3.12 --features abi3 --features generate-import-lib"
660660 manylinux : off
661661 # macos x86_64 -> aarch64
662- - os : " macos-13" # last x86_64 macos runners
662+ - os : " macos-13" # last x86_64 macos runners
663663 target : " aarch64-apple-darwin"
664664 # macos aarch64 -> x86_64
665665 - os : " macos-latest"
@@ -668,11 +668,10 @@ jobs:
668668 - uses : actions/checkout@v4
669669 - uses : actions/setup-python@v5
670670 with :
671- python-version : ' 3.12'
671+ python-version : " 3.12"
672672 - uses : Swatinem/rust-cache@v2
673673 with :
674- workspaces :
675- examples/maturin-starter
674+ workspaces : examples/maturin-starter
676675 save-if : ${{ github.event_name != 'merge_group' }}
677676 key : ${{ matrix.target }}
678677 - name : Setup cross-compiler
@@ -692,11 +691,10 @@ jobs:
692691 - uses : actions/checkout@v4
693692 - uses : actions/setup-python@v5
694693 with :
695- python-version : ' 3.12'
694+ python-version : " 3.12"
696695 - uses : Swatinem/rust-cache@v2
697696 with :
698- workspaces :
699- examples/maturin-starter
697+ workspaces : examples/maturin-starter
700698 save-if : ${{ github.event_name != 'merge_group' }}
701699 - uses : actions/cache/restore@v4
702700 with :
0 commit comments