@@ -106,20 +106,20 @@ jobs:
106106 os : ubuntu-24.04-arm
107107 toxenv : py
108108 tox_extra_args : " -n 4 --mypy-num-workers=4 mypy/test/testcheck.py"
109- dev_ast_serialize : true
109+ ast_serialize : true
110110 - name : Parallel tests with py314-ubuntu, mypyc-compiled
111111 python : ' 3.14'
112112 os : ubuntu-24.04-arm
113113 toxenv : py
114114 tox_extra_args : " -n 4 --mypy-num-workers=4 mypy/test/testcheck.py"
115115 test_mypyc : true
116- dev_ast_serialize : true
116+ ast_serialize : true
117117 - name : Parallel tests with py314-windows-64, interpreted
118118 python : ' 3.14'
119119 os : windows-latest
120120 toxenv : py
121121 tox_extra_args : " -n 2 --mypy-num-workers=2 mypy/test/testcheck.py -k 'incremental or modules or classes'"
122- dev_ast_serialize : true
122+ ast_serialize : true
123123
124124 - name : Type check our own code (py310-ubuntu)
125125 python : ' 3.10'
@@ -142,7 +142,7 @@ jobs:
142142 timeout-minutes : 60
143143 env :
144144 TOX_SKIP_MISSING_INTERPRETERS : False
145- VIRTUALENV_SYSTEM_SITE_PACKAGES : ${{ matrix.dev_ast_serialize && 1 || 0 }}
145+ VIRTUALENV_SYSTEM_SITE_PACKAGES : ${{ matrix.ast_serialize && 1 || 0 }}
146146 # Rich (pip) -- Disable color for windows + pytest
147147 FORCE_COLOR : ${{ !(startsWith(matrix.os, 'windows-') && startsWith(matrix.toxenv, 'py')) && 1 || 0 }}
148148 # Tox
@@ -217,10 +217,10 @@ jobs:
217217 pip install -r test-requirements.txt
218218 CC=clang MYPYC_OPT_LEVEL=0 MYPY_USE_MYPYC=1 pip install -e .
219219
220- # To speed-up process until ast_serialize is on PyPI .
221- - name : Install pinned ast-serialize
222- if : ${{ matrix.dev_ast_serialize }}
223- run : pip install ast-serialize@git+https://github.com/mypyc/ast_serialize.git@052c5bfa3b2a5bf07c0b163ccbe2c5ccbfae9ac5
220+ # It is an optional dependency (for now) .
221+ - name : Install ast-serialize
222+ if : ${{ matrix.ast_serialize }}
223+ run : pip install ast-serialize>=0.1.1,<1.0.0
224224
225225 - name : Setup tox environment
226226 run : |
0 commit comments