@@ -56,13 +56,13 @@ jobs:
56
56
- uses : hynek/setup-cached-uv@v2
57
57
58
58
- name : Prepare & run Nox
59
- run : |
60
- uv pip install --system nox "tomli; python_version<'3.11'"
61
- python -Im nox \
62
- --python ${{ matrix.python-version }} \
63
- --sessions tests \
64
- -- \
65
- --installpkg dist/*.whl
59
+ run : >
60
+ uvx
61
+ --with "tomli; python_version<'3.11'"
62
+ nox
63
+ --python ${{ matrix.python-version }}
64
+ --sessions tests
65
+ -- --installpkg dist/*.whl
66
66
67
67
- name : Upload coverage data
68
68
uses : actions/upload-artifact@v4
@@ -92,16 +92,16 @@ jobs:
92
92
93
93
- name : Combine coverage & fail if it's <100%.
94
94
run : |
95
- uv pip install --system --upgrade coverage[toml]
95
+ uv tool install coverage[toml]
96
96
97
- python -Im coverage combine
98
- python -Im coverage html --skip-covered --skip-empty
97
+ coverage combine
98
+ coverage html --skip-covered --skip-empty
99
99
100
100
# Report and write to summary.
101
- python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
101
+ coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
102
102
103
103
# Report again and fail if under 100%.
104
- python -Im coverage report --fail-under=100
104
+ coverage report --fail-under=100
105
105
106
106
- name : Upload HTML report if check failed.
107
107
uses : actions/upload-artifact@v4
@@ -132,19 +132,21 @@ jobs:
132
132
allow-prereleases : true
133
133
- uses : hynek/setup-cached-uv@v2
134
134
135
- - run : uv pip install --system nox "tomli; python_version<'3.11'"
136
-
137
135
- name : Check using Mypy
138
- run : |
139
- python -Im nox \
140
- --python ${{ matrix.python-version }} \
141
- --sessions mypy_api
136
+ run : >
137
+ uvx
138
+ --with "tomli; python_version<'3.11'"
139
+ nox
140
+ --python ${{ matrix.python-version }}
141
+ --sessions mypy_api
142
142
143
143
- name : Check using Pyright
144
- run : |
145
- python -Im nox \
146
- --python ${{ matrix.python-version }} \
147
- --sessions pyright_api
144
+ run : >
145
+ uvx
146
+ --with "tomli; python_version<'3.11'"
147
+ nox
148
+ --python ${{ matrix.python-version }}
149
+ --sessions pyright_api
148
150
149
151
mypy-pkg :
150
152
name : Type-check package
@@ -164,10 +166,7 @@ jobs:
164
166
- uses : hynek/setup-cached-uv@v2
165
167
166
168
- name : Prepare & run Nox
167
- run : |
168
- uv pip install --system nox
169
- python -Im nox \
170
- --sessions mypy_pkg
169
+ run : uvx nox --sessions mypy_pkg
171
170
172
171
docs :
173
172
name : Build docs & run doctests
@@ -187,10 +186,7 @@ jobs:
187
186
- uses : hynek/setup-cached-uv@v2
188
187
189
188
- name : Prepare & run Nox
190
- run : |
191
- uv pip install --system nox
192
- python -Im nox \
193
- --session docs
189
+ run : uvx nox --session docs
194
190
195
191
install-dev :
196
192
name : Verify dev env
0 commit comments