ci: add type check and format check, block merge on failure

- Run ty check; fail CI if type errors
- Run ruff format --check; fail CI if not formatted
- Rename workflow to CI

Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
This commit is contained in:
Cursor Agent 2026-02-15 06:38:41 +00:00
parent 4919a58381
commit 6d1197fb9b

View file

@ -1,4 +1,4 @@
name: Tests
name: CI
on:
push:
@ -7,7 +7,7 @@ on:
branches: [main, master, cursor/readme-badges-best-practices-2d69]
jobs:
test:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -25,3 +25,9 @@ jobs:
- name: Run tests
run: uv run pytest -v --tb=short
- name: Type check
run: uv run ty check
- name: Check formatting
run: uv run ruff format --check