Update tests.yml

This commit is contained in:
Ali Khokhar 2026-02-15 09:24:33 -08:00 committed by GitHub
parent 46a9c14536
commit de970deb5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,14 +16,7 @@ jobs:
with:
ref: ${{ github.head_ref || github.ref_name }}
fetch-depth: 1
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
enable-cache: true
cache-python: true
- name: "Fail on type: ignore (no suppressions allowed)"
run: |
if grep -rE '# type: ignore|# ty: ignore' --include='*.py' . --exclude-dir=.venv --exclude-dir=.git; then
@ -32,6 +25,13 @@ jobs:
fi
exit 0
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
enable-cache: true
cache-python: true
- name: Type check
run: uv run ty check