Skip to content

feat: 2026 Python Stack (Ruff + Black + ty) #3

feat: 2026 Python Stack (Ruff + Black + ty)

feat: 2026 Python Stack (Ruff + Black + ty) #3

Workflow file for this run

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