1
1
# This workflow is autogenerated by maturin v1.3.0
2
2
name : CI
3
-
4
3
on :
5
4
push :
6
5
branches :
9
8
- " *"
10
9
pull_request :
11
10
workflow_dispatch :
12
-
13
11
permissions :
14
12
contents : read
15
-
16
13
jobs :
17
14
format :
18
15
name : Check Python format
29
26
run : ruff check .
30
27
- name : Black
31
28
run : black --check --diff .
32
-
33
29
rustfmt :
34
30
name : Check Rust format
35
31
runs-on : ubuntu-latest
@@ -40,14 +36,12 @@ jobs:
40
36
- run : rustup update stable && rustup default stable
41
37
- run : rustup component add rustfmt
42
38
- run : cargo fmt --all --check
43
-
44
39
test :
45
40
name : Run tests
46
41
runs-on : ubuntu-latest
47
42
strategy :
48
43
matrix :
49
- python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
50
-
44
+ python-version : ["3.10", "3.11", "3.12", "3.13"]
51
45
steps :
52
46
- uses : actions/checkout@v4
53
47
with :
70
64
with :
71
65
sccache : true
72
66
manylinux : auto
73
-
74
67
linux :
75
68
runs-on : ubuntu-latest
76
69
strategy :
@@ -82,12 +75,12 @@ jobs:
82
75
fetch-depth : 0
83
76
- uses : actions/setup-python@v4
84
77
with :
85
- python-version : " 3.9 "
78
+ python-version : " 3.10 "
86
79
- name : Build wheels
87
80
uses : PyO3/maturin-action@v1
88
81
with :
89
82
target : ${{ matrix.target }}
90
- args : --release --out dist --interpreter 3.9
83
+ args : --release --out dist --interpreter 3.10
91
84
sccache : true
92
85
manylinux : auto
93
86
- name : Upload wheels
104
97
pytest --import-mode=importlib
105
98
- name : pytest
106
99
if : ${{ !startsWith(matrix.target, 'x86') && matrix.target != 'ppc64' }}
107
- uses : uraimo/run-on-arch-action@v2.7.2
100
+ uses : uraimo/run-on-arch-action@v2.8
108
101
with :
109
102
arch : ${{ matrix.target }}
110
103
distro : ubuntu22.04
@@ -117,7 +110,6 @@ jobs:
117
110
set -e
118
111
pip3 install --pre "general_sam[test]" --find-links dist --force-reinstall
119
112
pytest --import-mode=importlib
120
-
121
113
windows :
122
114
runs-on : windows-latest
123
115
strategy :
@@ -129,13 +121,13 @@ jobs:
129
121
fetch-depth : 0
130
122
- uses : actions/setup-python@v4
131
123
with :
132
- python-version : " 3.9 "
124
+ python-version : " 3.10 "
133
125
architecture : ${{ matrix.target }}
134
126
- name : Build wheels
135
127
uses : PyO3/maturin-action@v1
136
128
with :
137
129
target : ${{ matrix.target }}
138
- args : --release --out dist --interpreter 3.9
130
+ args : --release --out dist --interpreter 3.10
139
131
sccache : true
140
132
- name : Upload wheels
141
133
uses : actions/upload-artifact@v4
@@ -149,7 +141,6 @@ jobs:
149
141
set -e
150
142
pip install --pre "general_sam[test]" --find-links dist --force-reinstall
151
143
pytest --import-mode=importlib
152
-
153
144
macos :
154
145
runs-on : macos-latest
155
146
strategy :
@@ -161,12 +152,12 @@ jobs:
161
152
fetch-depth : 0
162
153
- uses : actions/setup-python@v4
163
154
with :
164
- python-version : " 3.9 "
155
+ python-version : " 3.10 "
165
156
- name : Build wheels
166
157
uses : PyO3/maturin-action@v1
167
158
with :
168
159
target : ${{ matrix.target }}
169
- args : --release --out dist --interpreter 3.9
160
+ args : --release --out dist --interpreter 3.10
170
161
sccache : true
171
162
- name : Upload wheels
172
163
uses : actions/upload-artifact@v4
@@ -180,7 +171,6 @@ jobs:
180
171
set -e
181
172
pip install --pre "general_sam[test]" --find-links dist --force-reinstall
182
173
pytest --import-mode=importlib
183
-
184
174
sdist :
185
175
needs : [test]
186
176
runs-on : ubuntu-latest
@@ -198,7 +188,6 @@ jobs:
198
188
with :
199
189
name : wheels-sdist
200
190
path : dist
201
-
202
191
release :
203
192
name : Release
204
193
runs-on : ubuntu-latest
0 commit comments