@@ -70,18 +70,17 @@ jobs:
70
70
echo DO_MYPY=$DO_MYPY >>$GITHUB_ENV
71
71
echo TOX_PYTHON=py$(echo $V | tr -d .) >>$GITHUB_ENV
72
72
73
- uv pip install --system tox
74
-
75
- - run : uv pip install --system tox-uv
76
-
77
- - run : python -Im tox run -e ${{ env.TOX_PYTHON }}-mypy
73
+ - run : >
74
+ uvx --with=tox-uv
75
+ tox run
76
+ -e ${{ env.TOX_PYTHON }}-mypy
78
77
if: env.DO_MYPY == '1'
79
78
80
79
- name : Remove src to ensure tests run against wheel
81
80
run : rm -rf src
82
81
83
82
- run : >
84
- python -Im
83
+ uvx --with=tox-uv
85
84
tox run
86
85
--installpkg dist/*.whl
87
86
-e ${{ env.TOX_PYTHON }}-tests
@@ -121,10 +120,8 @@ jobs:
121
120
allow-prereleases : true
122
121
- uses : hynek/setup-cached-uv@v2
123
122
124
- - run : uv pip install --system tox-uv
125
-
126
123
- run : >
127
- python -Im
124
+ uvx --with=tox-uv
128
125
tox run
129
126
--installpkg dist/*.whl
130
127
-e pypy3-tests
@@ -154,16 +151,16 @@ jobs:
154
151
155
152
- name : Combine coverage & fail if it's <100%.
156
153
run : |
157
- uv pip install --system coverage[toml]
154
+ uv tool install ' coverage[toml]'
158
155
159
- python -Im coverage combine
160
- python -Im coverage html --skip-covered --skip-empty
156
+ coverage combine
157
+ coverage html --skip-covered --skip-empty
161
158
162
159
# Report and write to summary.
163
- python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
160
+ coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
164
161
165
162
# Report again and fail if under 100%.
166
- python -Im coverage report --fail-under=100
163
+ coverage report --fail-under=100
167
164
168
165
- name : Upload HTML report if check failed.
169
166
uses : actions/upload-artifact@v4
@@ -189,8 +186,7 @@ jobs:
189
186
python-version : " 3.12"
190
187
- uses : hynek/setup-cached-uv@v2
191
188
192
- - run : uv pip install --system tox-uv
193
- - run : python -Im tox run -e docs,changelog
189
+ - run : uvx --with=tox-uv tox run -e docs,changelog
194
190
195
191
pyright :
196
192
name : Check types using pyright
@@ -202,8 +198,7 @@ jobs:
202
198
python-version-file : .python-version-default
203
199
- uses : hynek/setup-cached-uv@v2
204
200
205
- - run : uv pip install --system tox-uv
206
- - run : python -Im tox run -e pyright
201
+ - run : uvx --with=tox-uv tox run -e pyright
207
202
208
203
install-dev :
209
204
name : Verify dev env
0 commit comments