v0.13.0 Better warnings #19
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
| on: | |
| release: | |
| types: | |
| - published | |
| name: release | |
| jobs: | |
| pypi-publish: | |
| name: upload release to PyPI | |
| runs-on: ubuntu-latest | |
| # Specifying a GitHub environment is optional, but strongly encouraged | |
| environment: pypi | |
| permissions: | |
| # IMPORTANT: this permission is mandatory for Trusted Publishing | |
| id-token: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: 0.10.0 | |
| - name: Install the project | |
| run: uv sync --locked --all-extras --dev | |
| - name: Run prek | |
| run: | | |
| uv python install | |
| uv tool run prek --all-files --skip no-commit-to-branch | |
| - name: Run tests | |
| run: | | |
| uv run pytest | |
| - name: Run benchmarks | |
| run: | | |
| uv run benchmark.py | |
| - name: Build package distributions | |
| run: uv build | |
| - name: Publish package distributions to PyPI | |
| run: uv publish |