-
-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (34 loc) · 996 Bytes
/
typecheck.yml
File metadata and controls
44 lines (34 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Validate static types in quaddtype
permissions: read-all
on:
pull_request:
paths:
- .github/workflows/typecheck.yml
- src/numpy_quaddtype/**
- meson.build
- pyproject.toml
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
typecheck_quaddtype:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v8.0.0
with:
activate-environment: true
python-version: "3.12"
- name: install
run: |
uv pip install mypy pyright .
- name: pyright
run: pyright
- name: pyright --verifytypes
run: pyright --ignoreexternal --verifytypes numpy_quaddtype
- name: mypy
run: mypy --no-incremental --cache-dir=/dev/null .
- name: stubtest
run: stubtest --mypy-config-file pyproject.toml numpy_quaddtype