@@ -2,76 +2,48 @@ name: Type checker compatibility tests
22
33permissions :
44 contents : read
5+ checks : write
56
67on :
78 - workflow_dispatch
89
910jobs :
10- mypy_compat :
11+ mypy :
1112 strategy :
1213 fail-fast : false
1314 matrix :
14- myver :
15+ mypy-ver :
1516 - ' 1.19.1'
1617 - ' 1.19.0'
1718 - ' 1.18.2'
1819 - ' 1.18.1'
19- runs-on : ubuntu-slim
20- steps :
21- - uses : actions/checkout@v6
20+ uses : ./.github/workflows/inc_tc_mypy.yml
21+ with :
22+ tarball-flavor : none
23+ ver-spec : mypy == ${{ matrix.mypy-ver }}
2224
23- - uses : astral-sh/setup-uv@v7
24- with :
25- version : ' 0.9.26'
26- cache-dependency-glob : |
27- ./pyproject.toml
2825
29- - name : Install prerequisites
30- run : |
31- uv venv --python-preference only-system
32- uv pip install -r pyproject.toml
33- uv pip install 'mypy == ${{ matrix.myver }}'
34-
35- - name : Perform type check
36- run : >
37- .venv/bin/mypy src
38-
39-
40- pyright_compat :
26+ pyright :
4127 strategy :
4228 fail-fast : false
4329 matrix :
44- prver :
30+ pyright-ver :
4531 - ' 1.1.408'
4632 - ' 1.1.407'
4733 - ' 1.1.406'
48- runs-on : ubuntu-slim
49- steps :
50- - uses : actions/checkout@v6
51-
52- - uses : astral-sh/setup-uv@v7
53- with :
54- version : ' 0.9.26'
55- cache-dependency-glob : |
56- ./pyproject.toml
57-
58- - name : Install prerequisites
59- run : |
60- uv venv --python-preference only-system
61- uv pip install .[mypy]
62-
63- - uses : jakebailey/pyright-action@v2
64- with :
65- version : ${{ matrix.prver }}
66- python-path : .venv/bin/python
67- extra-args : src
34+ uses : ./.github/workflows/inc_tc_pyright.yml
35+ with :
36+ tarball-flavor : none
37+ ver-spec : pyright == ${{ matrix.pyright-ver }}
6838
6939
7040 basedpyright_compat :
7141 strategy :
7242 fail-fast : false
7343 matrix :
74- bpr-ver :
44+ basedpyright-ver :
45+ - ' 1.37.3'
46+ - ' 1.37.2'
7547 - ' 1.37.1'
7648 - ' 1.37.0'
7749 - ' 1.36.2'
@@ -84,97 +56,46 @@ jobs:
8456 - ' 1.32.0'
8557 - ' 1.31.7'
8658 - ' 1.31.6'
59+ uses : ./.github/workflows/inc_tc_basedpyright.yml
60+ with :
61+ tarball-flavor : none
62+ ver-spec : basedpyright == ${{ matrix.basedpyright-ver }}
8763
88- runs-on : ' ubuntu-slim'
89- steps :
90- - uses : actions/checkout@v6
91-
92- - uses : astral-sh/setup-uv@v7
93- with :
94- version : ' 0.9.26'
95- cache-dependency-glob : |
96- ./pyproject.toml
97-
98- - name : Install prerequisite python packages
99- run : |
100- uv venv --python-preference only-system
101- uv pip install .[mypy]
102- uv pip install "basedpyright==${{ matrix.bpr-ver }}"
103-
104- - name : Run basedpyright
105- run : |
106- source .venv/bin/activate
107- basedpyright --level error src
10864
109-
110- pyrefly_compat :
65+ pyrefly :
11166 strategy :
11267 fail-fast : false
11368 matrix :
114- pyr-ver :
69+ pyrefly-ver :
70+ - ' 0.50.1'
71+ - ' 0.50.0'
11572 - ' 0.49.0'
11673 - ' 0.48.2'
11774 - ' 0.48.1'
11875 - ' 0.48.0'
11976 - ' 0.47.0'
12077 - ' 0.46.3'
121- - ' 0.46.2'
122- - ' 0.46.1'
123- - ' 0.46.0'
124- - ' 0.45.2'
125-
126- runs-on : ' ubuntu-slim'
127- steps :
128- - uses : actions/checkout@v6
129-
130- - uses : astral-sh/setup-uv@v7
131- with :
132- version : ' 0.9.26'
133- cache-dependency-glob : |
134- ./pyproject.toml
135-
136- - name : Install prerequisite python packages
137- run : |
138- uv venv --python-preference only-system
139- uv pip install .[mypy]
140- uv pip install "pyrefly==${{ matrix.pyr-ver }}"
78+ uses : ./.github/workflows/inc_tc_pyrefly.yml
79+ with :
80+ tarball-flavor : none
81+ ver-spec : pyrefly == ${{ matrix.pyrefly-ver }}
14182
142- - name : Run pyrefly
143- run : |
144- source .venv/bin/activate
145- pyrefly check src
14683
147-
148- ty_compat :
84+ ty :
14985 strategy :
15086 fail-fast : false
15187 matrix :
15288 ty-ver :
89+ - ' 0.0.14'
15390 - ' 0.0.13'
15491 - ' 0.0.12'
15592 - ' 0.0.11'
15693 - ' 0.0.10'
15794 - ' 0.0.9'
15895 - ' 0.0.8'
15996 - ' 0.0.7'
97+ uses : ./.github/workflows/inc_tc_ty.yml
98+ with :
99+ tarball-flavor : none
100+ ver-spec : ty == ${{ matrix.ty-ver }}
160101
161- runs-on : ' ubuntu-slim'
162- steps :
163- - uses : actions/checkout@v6
164-
165- - uses : astral-sh/setup-uv@v7
166- with :
167- version : ' 0.9.26'
168- cache-dependency-glob : |
169- ./pyproject.toml
170-
171- - name : Install prerequisite python packages
172- run : |
173- uv venv --python-preference only-system
174- uv pip install .[mypy]
175- uv pip install "ty==${{ matrix.ty-ver }}"
176-
177- - name : Run ty
178- run : |
179- source .venv/bin/activate
180- ty check src
0 commit comments