Skip to content

Commit 0fc49eb

Browse files
committed
Try a compromise version
1 parent a9f440f commit 0fc49eb

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +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
109110
- name: Parallel tests with py314-ubuntu, mypyc-compiled
110111
python: '3.14'
111112
os: ubuntu-24.04-arm
112113
toxenv: py
113114
tox_extra_args: "-n 4 --mypy-num-workers=4 mypy/test/testcheck.py"
114115
test_mypyc: true
116+
dev_ast_serialize: true
115117
- name: Parallel tests with py314-windows-64, interpreted
116118
python: '3.14'
117119
os: windows-latest
118120
toxenv: py
119121
tox_extra_args: "-n 2 --mypy-num-workers=2 mypy/test/testcheck.py -k 'incremental or modules or classes'"
122+
dev_ast_serialize: true
120123

121124
- name: Type check our own code (py310-ubuntu)
122125
python: '3.10'
@@ -139,6 +142,7 @@ jobs:
139142
timeout-minutes: 60
140143
env:
141144
TOX_SKIP_MISSING_INTERPRETERS: False
145+
VIRTUALENV_SYSTEM_SITE_PACKAGES: ${{ matrix.dev_ast_serialize && 1 || 0 }}
142146
# Rich (pip) -- Disable color for windows + pytest
143147
FORCE_COLOR: ${{ !(startsWith(matrix.os, 'windows-') && startsWith(matrix.toxenv, 'py')) && 1 || 0 }}
144148
# Tox
@@ -213,6 +217,11 @@ jobs:
213217
pip install -r test-requirements.txt
214218
CC=clang MYPYC_OPT_LEVEL=0 MYPY_USE_MYPYC=1 pip install -e .
215219
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@da5a16cf268dbec63ed6b2e6b715470576e2d1a6
224+
216225
- name: Setup tox environment
217226
run: |
218227
tox run -e ${{ matrix.toxenv }} --notest

test-requirements.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@ pytest-cov>=2.10.0
1313
setuptools>=75.1.0
1414
tomli>=1.1.0 # needed even on py311+ so the self check passes with --python-version 3.10
1515
pre_commit>=3.5.0
16-
# To speed-up process until ast_serialize is on PyPI.
17-
ast-serialize @ git+https://github.com/mypyc/ast_serialize.git@da5a16cf268dbec63ed6b2e6b715470576e2d1a6

test-requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#
55
# pip-compile --allow-unsafe --output-file=test-requirements.txt --strip-extras test-requirements.in
66
#
7-
ast-serialize @ git+https://github.com/mypyc/ast_serialize.git@da5a16cf268dbec63ed6b2e6b715470576e2d1a6
8-
# via -r test-requirements.in
97
attrs==25.4.0
108
# via -r test-requirements.in
119
cfgv==3.4.0

0 commit comments

Comments
 (0)