feat: FT211 typing — TypedDict / Protocol / runtime_checkable / get_type_hints / Literal #742
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "latest" | |
| enable-cache: true | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: pytest (with coverage) | |
| run: uv run pytest | |
| - name: coverage gate — domain/use_case layers (90%) | |
| run: | | |
| uv run coverage report \ | |
| --include="src/example/*/use_case.py,src/example/*/async_use_case.py,src/example/*/entity.py" \ | |
| --fail-under=90 | |
| - name: mypy | |
| run: uv run mypy src/ | |
| - name: ruff check | |
| run: uv run ruff check src/ tests/ | |
| - name: ruff format | |
| run: uv run ruff format --check src/ tests/ | |
| - name: pip-audit | |
| # PYSEC-2025-183: pyjwt weak-key-length — disputed by supplier, no fix version available. | |
| # Transitive via mcp>=1.0. Re-evaluate when pyjwt releases a fix. (#280) | |
| run: uv run pip-audit --ignore-vuln PYSEC-2025-183 |