50
50
run : |
51
51
tar xf dist/*.tar.gz --strip-components=1
52
52
rm -rf src
53
- - uses : actions/setup-python@v5
54
- with :
55
- python-version : ${{ matrix.python-version }}
56
- allow-prereleases : true
57
53
- uses : hynek/setup-cached-uv@v2
58
54
59
55
- name : Prepare & run Nox
86
82
- uses : actions/checkout@v4
87
83
with :
88
84
persist-credentials : false
89
- - uses : actions/setup-python@v5
90
- with :
91
- python-version-file : .python-version-default
92
85
- uses : hynek/setup-cached-uv@v2
93
86
94
87
- uses : actions/download-artifact@v4
98
91
99
92
- name : Combine coverage & fail if it's <100%.
100
93
run : |
101
- uv tool install coverage
94
+ uv tool install --python $(cat .python-version-default) coverage
102
95
103
96
coverage combine
104
97
coverage html --skip-covered --skip-empty
@@ -134,10 +127,6 @@ jobs:
134
127
name : Packages
135
128
path : dist
136
129
- run : tar xf dist/*.tar.gz --strip-components=1
137
- - uses : actions/setup-python@v5
138
- with :
139
- python-version : ${{ matrix.python-version }}
140
- allow-prereleases : true
141
130
- uses : hynek/setup-cached-uv@v2
142
131
143
132
- name : Check using Mypy
@@ -168,13 +157,14 @@ jobs:
168
157
name : Packages
169
158
path : dist
170
159
- run : tar xf dist/*.tar.gz --strip-components=1
171
- - uses : actions/setup-python@v5
172
- with :
173
- python-version-file : .python-version-default
174
160
- uses : hynek/setup-cached-uv@v2
175
161
176
162
- name : Prepare & run Nox
177
- run : uvx nox --sessions mypy_pkg
163
+ run : >
164
+ uvx
165
+ --python $(cat .python-version-default)
166
+ nox
167
+ --sessions mypy_pkg
178
168
179
169
docs :
180
170
name : Run doctests
@@ -187,10 +177,6 @@ jobs:
187
177
name : Packages
188
178
path : dist
189
179
- run : tar xf dist/*.tar.gz --strip-components=1
190
- - uses : actions/setup-python@v5
191
- with :
192
- # Keep in sync with .readthedocs.yaml
193
- python-version : " 3.13"
194
180
- uses : hynek/setup-cached-uv@v2
195
181
196
182
- name : Prepare & run Nox
@@ -207,14 +193,11 @@ jobs:
207
193
- uses : actions/checkout@v4
208
194
with :
209
195
persist-credentials : false
210
- - uses : actions/setup-python@v5
211
- with :
212
- python-version-file : .python-version-default
213
196
- uses : hynek/setup-cached-uv@v2
214
197
215
198
- name : Install in dev mode
216
199
run : |
217
- uv venv
200
+ uv venv --python $(cat .python-version-default)
218
201
uv pip install -e .[dev]
219
202
220
203
- name : Try to import on Linux
0 commit comments