Skip to content

v2.1.0 - API Enhancement #52

v2.1.0 - API Enhancement

v2.1.0 - API Enhancement #52

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [created]
jobs:
test:
runs-on: ubuntu-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
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --dev
- name: Run tests
run: uv run make test
- name: Run format check
run: uv run ruff check .
- name: Run linters
run: uv run make lint
status-check:
runs-on: ubuntu-latest
needs: test
name: Status Check
steps:
- run: echo "All tests passed successfully!"
publish:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python
run: uv python install 3.9
- name: Install dependencies
run: uv sync --dev
- name: Build and publish
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
uv build
uv publish