Merge pull request #21 from Neumi/copilot/sub-pr-17 #26
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
| name: Python CI | |
| on: | |
| workflow_call: | |
| push: | |
| branches: ["**"] | |
| paths: | |
| - '**/*.py' | |
| - 'pyproject.toml' | |
| pull_request: | |
| branches: ["**"] | |
| paths: | |
| - '**/*.py' | |
| - 'pyproject.toml' | |
| jobs: | |
| test-lint-typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Setup uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Sync dependencies (including dev) | |
| run: uv sync --all-extras --dev | |
| - name: Run tests (pytest) | |
| run: uv run pytest | |
| - name: Lint (ruff) | |
| run: uvx ruff check | |
| - name: Type check (mypy) | |
| run: uv run mypy |