feat: 2026 Python Stack (Ruff + Black + ty) #3
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: Python CI | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff ty pytest pytest-cov | |
| pip install -r requirements.txt | |
| - name: Format check with Ruff | |
| run: | | |
| ruff format --check . | |
| - name: Lint with Ruff | |
| run: | | |
| ruff check . | |
| - name: Type check with ty | |
| run: | | |
| ty check . | |
| - name: Test with pytest and coverage | |
| run: | | |
| pytest --cov=. --cov-report=term-missing --cov-fail-under=70 |