Skip to content

Workflow file for this run

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 }}