Skip to content

v0.2.0

v0.2.0 #13

Workflow file for this run

name: Upload Python Package
on:
release:
types: ["published"]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Setup uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
version: "0.5.7"
- name: Install dependencies
run: |
uv venv .venv
uv pip install ".[dev]"
- name: Make sure we didn't forget anything in pre-commit
run: |
uv run pre-commit run --all
- name: Test with pytest
run: |
uv run pytest
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_NON_INTERACTIVE: "1"
run: |
uv build
uvx twine upload dist/*