Skip to content

Release/0.25.0

Release/0.25.0 #75

# .github/workflows/typecheck-python.yml
# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Type Check Python Code
on:
pull_request:
paths:
- "src/**/*.py"
- "tests/**/*.py"
- "noxfile.py"
- "pyproject.toml"
- "pyrightconfig.json"
- ".github/workflows/typecheck-python.yml"
- "**/*.pyi" # Include explicit type stub files
push:
branches:
- main
- master
paths:
- "src/**/*.py"
- "tests/**/*.py"
- "noxfile.py"
- "pyproject.toml"
- "pyrightconfig.json"
- ".github/workflows/typecheck-python.yml"
- "**/*.pyi"
workflow_dispatch:
jobs:
typecheck-python:
name: Run Python Type Checks on ${{ matrix.os }}/${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run Python type checking
run: uvx nox -s typecheck-${{ matrix.python-version }}