Workflow file for this run
This file contains 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 ] | |
jobs: | |
publish: | |
name: Publish package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- name: Install the project | |
run: uv sync --all-extras --dev | |
- name: Run pre-commit | |
run: uvx pre-commit run --all | |
- name: Run tests | |
run: uv run pytest tests | |
- name: Build | |
run: uv build | |
- name: Publish to PyPI | |
run: uv publish --token ${{ secrets.PYPI_TOKEN }} |