Skip to content

Support 3.13, drop 3.8 #11

Support 3.13, drop 3.8

Support 3.13, drop 3.8 #11

Workflow file for this run

name: Core
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Run tests
run: uv run --python ${{ matrix.python-version }} pytest
- name: Run ruff
run: |
poetry run ruff check .
poetry run ruff format --check
- name: Run pyright
run: poetry run pyright
deploy:
needs: build-and-test
runs-on: macos-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Build and Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
run: |
uv build
uv publish