Use uv in publish workflow #45
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish | ||
|
Check failure on line 1 in .github/workflows/publish.yml
|
||
| on: | ||
| workflow_dispatch: | ||
| release: | ||
| types: [created] | ||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: pypi | ||
| url: https://pypi.org/p/psm-utils | ||
| permissions: | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set up uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| python-version: "3.11" | ||
| - name: Build | ||
| run: uv build | ||
| - name: Test wheel | ||
| run: uv run --isolated --with *.whl python -c "import psm_utils; print('Successfully imported built package.')" | ||
| - name: Publish to PyPI | ||
| uses: uv publish | ||