Skip to content

Commit 666d13a

Browse files
committed
👷 typecheck, typetest, and stubtest on all supported python versions
1 parent 03b347f commit 666d13a

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

‎.github/workflows/ci.yml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,48 +35,61 @@ jobs:
3535

3636
basedpyright:
3737
runs-on: ubuntu-latest
38-
timeout-minutes: 2
38+
timeout-minutes: 5
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
py: ["3.10", "3.11", "3.12", "3.13"]
3943
steps:
4044
- uses: actions/checkout@v4
4145

4246
- uses: astral-sh/setup-uv@v5
4347
with:
4448
enable-cache: true
45-
python-version: 3.13t
49+
python-version: ${{ matrix.py }}
4650

47-
- name: basedpyright
51+
- name: basedpyright (python ${{ matrix.py }})
4852
run: >
4953
uv run --no-group=orjson
5054
basedpyright --threads=3
5155
5256
mypy:
5357
runs-on: ubuntu-latest
5458
timeout-minutes: 5
59+
strategy:
60+
fail-fast: false
61+
matrix:
62+
py: ["3.10", "3.11", "3.12", "3.13"]
5563
steps:
5664
- uses: actions/checkout@v4
5765

5866
- uses: astral-sh/setup-uv@v5
5967
with:
6068
enable-cache: true
61-
python-version: 3.13
69+
python-version: ${{ matrix.py }}
6270

63-
- name: mypy
71+
- name: mypy (python ${{ matrix.py }})
6472
run: >
6573
uv run --no-group=numpy
66-
mypy --no-incremental test
74+
mypy test
6775
6876
stubtest:
69-
runs-on: ubuntu-latest
70-
timeout-minutes: 10
77+
runs-on: ${{ matrix.os }}
78+
timeout-minutes: 5
79+
strategy:
80+
fail-fast: false
81+
matrix:
82+
os: [ubuntu-latest, windows-latest]
83+
py: ["3.10", "3.11", "3.12", "3.13"]
7184
steps:
7285
- uses: actions/checkout@v4
7386

7487
- uses: astral-sh/setup-uv@v5
7588
with:
7689
enable-cache: true
77-
python-version: 3.13
90+
python-version: ${{ matrix.py }}
7891

79-
- name: stubtest
92+
- name: stubtest (python ${{ matrix.py }})
8093
run: >
81-
uv run --no-project
82-
tool/stubtest.py --concise
94+
uv run --no-sync --active -p ${{ matrix.py }}
95+
tool/stubtest.py

0 commit comments

Comments
 (0)