Skip to content

Commit 1ee551a

Browse files
committed
Move GHA to uvx
1 parent fde3295 commit 1ee551a

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/ci.yml

+7-14
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,15 @@ jobs:
3333
- uses: actions/checkout@v4
3434
with: {fetch-depth: 0} # deep clone for setuptools-scm
3535
- uses: actions/setup-python@v5
36-
id: python-install
3736
with: {python-version: "3.10"}
37+
- uses: astral-sh/setup-uv@v5
3838
- name: Run static analysis and format checkers
3939
run: >-
40-
pipx run
41-
--pip-args tox-uv
42-
--python ${{ steps.python-install.outputs.python-path }}
40+
uvx --with tox-uv
4341
tox -e lint,typecheck
4442
- name: Build package distribution files
4543
run: >-
46-
pipx run
47-
--pip-args tox-uv
48-
--python ${{ steps.python-install.outputs.python-path }}
44+
uvx --with tox-uv
4945
tox -e clean,build
5046
- name: Record the path of wheel distribution
5147
id: wheel-distribution
@@ -84,9 +80,9 @@ jobs:
8480
steps:
8581
- uses: actions/checkout@v4
8682
- uses: actions/setup-python@v5
87-
id: python-install
8883
with:
8984
python-version: ${{ matrix.python }}
85+
- uses: astral-sh/setup-uv@v5
9086
- name: Retrieve pre-built distribution files
9187
uses: actions/download-artifact@v4
9288
with: {name: python-distribution-files, path: dist/}
@@ -97,9 +93,7 @@ jobs:
9793
path: ${{ env.VALIDATE_PYPROJECT_CACHE_REMOTE }}
9894
- name: Run tests
9995
run: >-
100-
pipx run
101-
--pip-args tox-uv
102-
--python ${{ steps.python-install.outputs.python-path }}
96+
uvx --with tox-uv
10397
tox
10498
--installpkg '${{ needs.prepare.outputs.wheel-distribution }}'
10599
-- -n 5 -rFEx --durations 10 --color yes
@@ -131,6 +125,7 @@ jobs:
131125
- uses: actions/checkout@v4
132126
- uses: actions/setup-python@v5
133127
with: {python-version: "3.10"}
128+
- uses: astral-sh/setup-uv@v5
134129
- name: Retrieve pre-built distribution files
135130
uses: actions/download-artifact@v4
136131
with: {name: python-distribution-files, path: dist/}
@@ -141,7 +136,5 @@ jobs:
141136
TWINE_USERNAME: __token__
142137
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
143138
run: >-
144-
pipx run
145-
--pip-args tox-uv
146-
--python ${{ steps.python-install.outputs.python-path }}
139+
uvx --with tox-uv
147140
tox -e publish

0 commit comments

Comments
 (0)