Skip to content

Commit 18b303d

Browse files
committed
CI: Static typing validation workflow for quaddtype
1 parent 11a9ff7 commit 18b303d

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/typecheck.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Validate static types in quaddtype
2+
permissions: read-all
3+
4+
on:
5+
pull_request:
6+
paths:
7+
- .github/workflows/typecheck.yml
8+
- quaddtype/numpy_quaddtype/*
9+
- quaddtype/meson.build
10+
- quaddtype/pyproject.toml
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
typecheck_quaddtype:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 2
21+
22+
steps:
23+
- uses: actions/[email protected]
24+
25+
- uses: astral-sh/[email protected]
26+
with:
27+
activate-environment: true
28+
python-version: "3.10"
29+
30+
- name: install
31+
working-directory: quaddtype
32+
run: uv pip install mypy pyright .
33+
34+
- name: pyright
35+
working-directory: quaddtype
36+
run: pyright
37+
38+
- name: pyright --verifytypes
39+
working-directory: quaddtype
40+
run: pyright --ignoreexternal --verifytypes numpy_quaddtype
41+
42+
- name: mypy
43+
working-directory: quaddtype
44+
run: mypy --no-incremental --cache-dir=/dev/null .
45+
46+
- name: stubtest
47+
working-directory: quaddtype
48+
run: stubtest --mypy-config-file pyproject.toml numpy_quaddtype

0 commit comments

Comments
 (0)