Skip to content

Commit 1ece656

Browse files
committed
Convert _dist.yml to use uvx over pipx
1 parent 0cb66d4 commit 1ece656

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/_dist.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,25 @@ jobs:
1717
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) &&
1818
pipx run build
1919
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v6
22+
23+
- name: Build sdist and wheel
24+
run: >
25+
export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) &&
26+
uvx --from build pyproject-build
27+
2028
- name: Upload sdist and wheel as artifacts
2129
uses: actions/upload-artifact@v4
2230
with:
2331
name: dist
2432
path: dist
2533

2634
- name: Check for packaging errors
27-
run: pipx run twine check --strict dist/*
35+
run: uvx twine check --strict dist/*
2836

2937
- name: Install produced wheel
30-
run: pipx run pip install dist/*.whl
38+
run: python -m pip install dist/*.whl
3139

3240
- name: Test module --version works using the installed wheel
3341
# If more than one module in src/ replace with module name to test

0 commit comments

Comments
 (0)