Skip to content

Commit 9ace416

Browse files
committed
run mypy and pyright in CI
1 parent 895df61 commit 9ace416

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/typecheck.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Validate static types
2+
permissions: read-all
3+
4+
on:
5+
pull_request:
6+
paths:
7+
- .github/workflows/typecheck.yml
8+
- numexpr/*
9+
- pyproject.toml
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
typecheck_quaddtype:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 2
20+
21+
steps:
22+
- uses: actions/checkout@v5.0.0
23+
24+
- uses: astral-sh/setup-uv@v6.7.0
25+
with:
26+
activate-environment: true
27+
python-version: "3.10"
28+
29+
- name: install
30+
run: uv pip install mypy pyright pytest .
31+
32+
- name: pyright
33+
run: pyright
34+
35+
- name: mypy
36+
run: mypy --no-incremental --cache-dir=/dev/null .

0 commit comments

Comments
 (0)