51
51
python-version : ${{ matrix.python-version }}
52
52
allow-prereleases : true
53
53
- uses : hynek/setup-cached-uv@v2
54
- - run : uv pip install --system tox-uv
55
54
56
- - run : python -Im tox run --installpkg dist/*.whl -f py$(echo ${{ matrix.python-version }} | tr -d .)
55
+ - run : >
56
+ uvx --with=tox-uv
57
+ tox run
58
+ --installpkg dist/*.whl
59
+ -f py$(echo ${{ matrix.python-version }} | tr -d .)
57
60
58
61
- name : Upload coverage data
59
62
uses : actions/upload-artifact@v4
@@ -82,14 +85,16 @@ jobs:
82
85
83
86
- name : Combine coverage & fail if it's <100%.
84
87
run : |
85
- python -Im coverage combine
86
- python -Im coverage html --skip-covered --skip-empty
88
+ uv tool install 'coverage[toml]'
89
+
90
+ coverage combine
91
+ coverage html --skip-covered --skip-empty
87
92
88
93
# Report and write to summary.
89
- python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
94
+ coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
90
95
91
96
# Report again and fail if under 100%.
92
- python -Im coverage report --fail-under=100
97
+ coverage report --fail-under=100
93
98
94
99
- name : Upload HTML report if check failed.
95
100
uses : actions/upload-artifact@v4
@@ -115,9 +120,12 @@ jobs:
115
120
python-version-file : .python-version-default
116
121
allow-prereleases : true
117
122
- uses : hynek/setup-cached-uv@v2
118
- - run : uv pip install --system tox-uv
119
123
120
- - run : python -Im tox run --installpkg dist/*.whl -e mypy-pkg
124
+ - run : >
125
+ uvx --with=tox-uv
126
+ tox run
127
+ --installpkg dist/*.whl
128
+ -e mypy-pkg
121
129
122
130
pyright :
123
131
name : Pyright
@@ -136,9 +144,12 @@ jobs:
136
144
python-version-file : .python-version-default
137
145
allow-prereleases : true
138
146
- uses : hynek/setup-cached-uv@v2
139
- - run : uv pip install --system tox-uv
140
147
141
- - run : python -Im tox run --installpkg dist/*.whl -e pyright
148
+ - run : >
149
+ uvx --with=tox-uv
150
+ tox run
151
+ --installpkg dist/*.whl
152
+ -e pyright
142
153
143
154
docs :
144
155
name : Build docs & run doctests
@@ -156,9 +167,11 @@ jobs:
156
167
# Keep in sync with tox.ini/docs & .readthedocs.yaml
157
168
python-version : " 3.12"
158
169
- uses : hynek/setup-cached-uv@v2
159
- - run : uv pip install --system tox-uv
160
170
161
- - run : python -Im tox run -e docs
171
+ - run : >
172
+ uvx --with=tox-uv
173
+ tox run
174
+ -e docs
162
175
163
176
install-dev :
164
177
name : Verify dev env
@@ -212,6 +225,8 @@ jobs:
212
225
with :
213
226
python-version-file : .python-version-default
214
227
- uses : hynek/setup-cached-uv@v2
215
- - run : uv pip install --system tox-uv
216
228
217
- - run : python -Im tox run -f color
229
+ - run : >
230
+ uvx --with=tox-uv
231
+ tox run
232
+ -f color
0 commit comments