Release/0.25.0 #75
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .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 }} |