Skip to content

0.1.0

0.1.0 #1

Workflow file for this run

name: Publish
on:
release:
types: [created]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv, set up Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Run pre-commit
run: uv run pre-commit run --show-diff-on-failure --color=always --all-files
- name: Test with python ${{ matrix.python-version }}
run: uv run --frozen pytest
publish:
runs-on: ubuntu-latest
needs: [ test ]
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
- name: Build package
run: uv build
- name: Publish package
run: uv publish