@@ -33,19 +33,15 @@ jobs:
33
33
- uses : actions/checkout@v4
34
34
with : {fetch-depth: 0} # deep clone for setuptools-scm
35
35
- uses : actions/setup-python@v5
36
- id : python-install
37
36
with : {python-version: "3.10"}
37
+ - uses : astral-sh/setup-uv@v5
38
38
- name : Run static analysis and format checkers
39
39
run : >-
40
- pipx run
41
- --pip-args tox-uv
42
- --python ${{ steps.python-install.outputs.python-path }}
40
+ uvx --with tox-uv
43
41
tox -e lint,typecheck
44
42
- name : Build package distribution files
45
43
run : >-
46
- pipx run
47
- --pip-args tox-uv
48
- --python ${{ steps.python-install.outputs.python-path }}
44
+ uvx --with tox-uv
49
45
tox -e clean,build
50
46
- name : Record the path of wheel distribution
51
47
id : wheel-distribution
84
80
steps :
85
81
- uses : actions/checkout@v4
86
82
- uses : actions/setup-python@v5
87
- id : python-install
88
83
with :
89
84
python-version : ${{ matrix.python }}
85
+ - uses : astral-sh/setup-uv@v5
90
86
- name : Retrieve pre-built distribution files
91
87
uses : actions/download-artifact@v4
92
88
with : {name: python-distribution-files, path: dist/}
97
93
path : ${{ env.VALIDATE_PYPROJECT_CACHE_REMOTE }}
98
94
- name : Run tests
99
95
run : >-
100
- pipx run
101
- --pip-args tox-uv
102
- --python ${{ steps.python-install.outputs.python-path }}
96
+ uvx --with tox-uv
103
97
tox
104
98
--installpkg '${{ needs.prepare.outputs.wheel-distribution }}'
105
99
-- -n 5 -rFEx --durations 10 --color yes
@@ -131,6 +125,7 @@ jobs:
131
125
- uses : actions/checkout@v4
132
126
- uses : actions/setup-python@v5
133
127
with : {python-version: "3.10"}
128
+ - uses : astral-sh/setup-uv@v5
134
129
- name : Retrieve pre-built distribution files
135
130
uses : actions/download-artifact@v4
136
131
with : {name: python-distribution-files, path: dist/}
@@ -141,7 +136,5 @@ jobs:
141
136
TWINE_USERNAME : __token__
142
137
TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
143
138
run : >-
144
- pipx run
145
- --pip-args tox-uv
146
- --python ${{ steps.python-install.outputs.python-path }}
139
+ uvx --with tox-uv
147
140
tox -e publish
0 commit comments