Skip to content

feat: add GitHub actions for Python and pre-commit checks for go #1704 #1

feat: add GitHub actions for Python and pre-commit checks for go #1704

feat: add GitHub actions for Python and pre-commit checks for go #1704 #1

Workflow file for this run

name: Python Checks
on:
pull_request:
paths:
- 'py/**'
jobs:
python-checks:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
defaults:
run:
working-directory: py
steps:
- uses: actions/checkout@v4
- name: Install uv and setup Python version
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Format check
run: uv run ruff format --check .
- name: Lint with ruff
run: uv run ruff check .
- name: Run tests
run: uv run pytest .
- name: Build documentation
run: uv run mkdocs build --strict
- name: Build distributions
run: ./bin/build_dists