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.12"
27
27
- run : python -m pip install --upgrade pip && pip install nox
28
28
- uses : dtolnay/rust-toolchain@stable
29
29
with :
@@ -41,11 +41,10 @@ jobs:
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.12"
45
45
- name : resolve MSRV
46
46
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
49
48
50
49
semver-checks :
51
50
if : github.ref != 'refs/heads/main'
55
54
- uses : actions/checkout@v4
56
55
- uses : actions/setup-python@v5
57
56
with :
58
- python-version : ' 3.12'
57
+ python-version : " 3.12"
59
58
- uses : obi1kenobi/cargo-semver-checks-action@v2
60
59
61
60
check-msrv :
69
68
components : rust-src
70
69
- uses : actions/setup-python@v5
71
70
with :
72
- python-version : ' 3.12'
71
+ python-version : " 3.12"
73
72
- uses : Swatinem/rust-cache@v2
74
73
with :
75
74
save-if : ${{ github.event_name != 'merge_group' }}
@@ -91,43 +90,44 @@ jobs:
91
90
fail-fast : ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
92
91
matrix :
93
92
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
+ ]
131
131
include :
132
132
# Run beta clippy as a way to detect any incoming lints which may affect downstream users
133
133
- rust : beta
@@ -148,7 +148,7 @@ jobs:
148
148
components : clippy,rust-src
149
149
- uses : actions/setup-python@v5
150
150
with :
151
- python-version : ' 3.12'
151
+ python-version : " 3.12"
152
152
architecture : ${{ matrix.platform.python-architecture }}
153
153
- uses : Swatinem/rust-cache@v2
154
154
with :
@@ -177,15 +177,14 @@ jobs:
177
177
matrix :
178
178
rust : [stable]
179
179
python-version : ["3.12"]
180
- platform :
181
- [
180
+ platform : [
182
181
{
183
- os : " macos-latest" , # first available arm macos runner
182
+ os : " macos-latest" , # first available arm macos runner
184
183
python-architecture : " arm64" ,
185
184
rust-target : " aarch64-apple-darwin" ,
186
185
},
187
186
{
188
- os : " macos-13" , # last available x86_64 macos runner
187
+ os : " macos-13" , # last available x86_64 macos runner
189
188
python-architecture : " x64" ,
190
189
rust-target : " x86_64-apple-darwin" ,
191
190
},
@@ -234,18 +233,19 @@ jobs:
234
233
fail-fast : ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
235
234
matrix :
236
235
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
+ ]
249
249
platform :
250
250
[
251
251
{
@@ -389,7 +389,7 @@ jobs:
389
389
with :
390
390
# FIXME valgrind detects an issue with Python 3.12.5, needs investigation
391
391
# whether it's a PyO3 issue or upstream CPython.
392
- python-version : ' 3.12.4'
392
+ python-version : " 3.12.4"
393
393
- uses : Swatinem/rust-cache@v2
394
394
with :
395
395
save-if : ${{ github.event_name != 'merge_group' }}
@@ -410,7 +410,7 @@ jobs:
410
410
- uses : actions/checkout@v4
411
411
- uses : actions/setup-python@v5
412
412
with :
413
- python-version : ' 3.12'
413
+ python-version : " 3.12"
414
414
- uses : Swatinem/rust-cache@v2
415
415
with :
416
416
save-if : ${{ github.event_name != 'merge_group' }}
@@ -432,7 +432,7 @@ jobs:
432
432
- uses : actions/checkout@v4
433
433
- uses : actions/setup-python@v5
434
434
with :
435
- python-version : ' 3.12'
435
+ python-version : " 3.12"
436
436
- uses : Swatinem/rust-cache@v2
437
437
with :
438
438
save-if : ${{ github.event_name != 'merge_group' }}
@@ -442,7 +442,7 @@ jobs:
442
442
- run : cargo rustdoc --lib --no-default-features --features full -Zunstable-options --config "build.rustdocflags=[\"--cfg\", \"docsrs\"]"
443
443
444
444
coverage :
445
- if : ${{ github.event_name != 'merge_group' }}
445
+ if : ${{ github.event_name != 'merge_group' }}
446
446
needs : [fmt]
447
447
name : coverage ${{ matrix.os }}
448
448
strategy :
@@ -453,7 +453,7 @@ jobs:
453
453
- uses : actions/checkout@v4
454
454
- uses : actions/setup-python@v5
455
455
with :
456
- python-version : ' 3.12'
456
+ python-version : " 3.12"
457
457
- uses : Swatinem/rust-cache@v2
458
458
with :
459
459
save-if : ${{ github.event_name != 'merge_group' }}
@@ -464,9 +464,9 @@ jobs:
464
464
uses : taiki-e/install-action@cargo-llvm-cov
465
465
- run : python -m pip install --upgrade pip && pip install nox
466
466
- run : nox -s coverage
467
- - uses : codecov/codecov-action@v4
467
+ - uses : codecov/codecov-action@v5
468
468
with :
469
- file : coverage.json
469
+ files : coverage.json
470
470
name : ${{ matrix.os }}
471
471
token : ${{ secrets.CODECOV_TOKEN }}
472
472
@@ -552,11 +552,11 @@ jobs:
552
552
553
553
test-free-threaded :
554
554
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 }}
557
557
strategy :
558
558
matrix :
559
- runner : ["ubuntu-latest", "macos-latest", "windows-latest"]
559
+ os : ["ubuntu-latest", "macos-latest", "windows-latest"]
560
560
steps :
561
561
- uses : actions/checkout@v4
562
562
- uses : Swatinem/rust-cache@v2
@@ -568,7 +568,7 @@ jobs:
568
568
# TODO: replace with actions/setup-python when there is support
569
569
-
uses :
quansight-labs/[email protected]
570
570
with :
571
- python-version : ' 3.13t'
571
+ python-version : " 3.13t"
572
572
- name : Install cargo-llvm-cov
573
573
uses : taiki-e/install-action@cargo-llvm-cov
574
574
- run : python3 -m sysconfig
@@ -582,10 +582,10 @@ jobs:
582
582
- name : Generate coverage report
583
583
run : nox -s generate-coverage-report
584
584
- name : Upload coverage report
585
- uses : codecov/codecov-action@v4
585
+ uses : codecov/codecov-action@v5
586
586
with :
587
- file : coverage.json
588
- name : test-free-threaded
587
+ files : coverage.json
588
+ name : ${{ matrix.os }}- test-free-threaded
589
589
token : ${{ secrets.CODECOV_TOKEN }}
590
590
591
591
test-version-limits :
@@ -596,7 +596,7 @@ jobs:
596
596
- uses : actions/checkout@v4
597
597
- uses : actions/setup-python@v5
598
598
with :
599
- python-version : ' 3.12'
599
+ python-version : " 3.12"
600
600
- uses : Swatinem/rust-cache@v2
601
601
with :
602
602
save-if : ${{ github.event_name != 'merge_group' }}
@@ -620,7 +620,7 @@ jobs:
620
620
- uses : actions/checkout@v4
621
621
- uses : actions/setup-python@v5
622
622
with :
623
- python-version : ' 3.12'
623
+ python-version : " 3.12"
624
624
- uses : Swatinem/rust-cache@v2
625
625
with :
626
626
save-if : ${{ github.event_name != 'merge_group' }}
@@ -659,7 +659,7 @@ jobs:
659
659
flags : " -i python3.12 --features abi3 --features generate-import-lib"
660
660
manylinux : off
661
661
# macos x86_64 -> aarch64
662
- - os : " macos-13" # last x86_64 macos runners
662
+ - os : " macos-13" # last x86_64 macos runners
663
663
target : " aarch64-apple-darwin"
664
664
# macos aarch64 -> x86_64
665
665
- os : " macos-latest"
@@ -668,11 +668,10 @@ jobs:
668
668
- uses : actions/checkout@v4
669
669
- uses : actions/setup-python@v5
670
670
with :
671
- python-version : ' 3.12'
671
+ python-version : " 3.12"
672
672
- uses : Swatinem/rust-cache@v2
673
673
with :
674
- workspaces :
675
- examples/maturin-starter
674
+ workspaces : examples/maturin-starter
676
675
save-if : ${{ github.event_name != 'merge_group' }}
677
676
key : ${{ matrix.target }}
678
677
- name : Setup cross-compiler
@@ -692,11 +691,10 @@ jobs:
692
691
- uses : actions/checkout@v4
693
692
- uses : actions/setup-python@v5
694
693
with :
695
- python-version : ' 3.12'
694
+ python-version : " 3.12"
696
695
- uses : Swatinem/rust-cache@v2
697
696
with :
698
- workspaces :
699
- examples/maturin-starter
697
+ workspaces : examples/maturin-starter
700
698
save-if : ${{ github.event_name != 'merge_group' }}
701
699
- uses : actions/cache/restore@v4
702
700
with :
0 commit comments