@@ -94,16 +94,13 @@ jobs:
94
94
os : macos-13
95
95
toxenv : py
96
96
tox_extra_args : " -n 3 mypyc/test/test_run.py mypyc/test/test_external.py"
97
- # This is broken. See
98
- # - https://github.com/python/mypy/issues/17819
99
- # - https://github.com/python/mypy/pull/17822
100
- # - name: mypyc runtime tests with py38-debug-build-ubuntu
101
- # python: '3.8.17'
102
- # arch: x64
103
- # os: ubuntu-latest
104
- # toxenv: py
105
- # tox_extra_args: "-n 4 mypyc/test/test_run.py mypyc/test/test_external.py"
106
- # debug_build: true
97
+ - name : mypyc runtime tests with py38-debug-build-ubuntu
98
+ python : ' 3.8'
99
+ debug_build : true
100
+ arch : x64
101
+ os : ubuntu-latest
102
+ toxenv : py
103
+ tox_extra_args : " -n 4 mypyc/test/test_run.py mypyc/test/test_external.py"
107
104
108
105
- name : Type check our own code (py38-ubuntu)
109
106
python : ' 3.8'
@@ -142,24 +139,15 @@ jobs:
142
139
steps :
143
140
- uses : actions/checkout@v4
144
141
145
- - name : Debug build
146
- if : ${{ matrix.debug_build }}
147
- run : |
148
- PYTHONVERSION=${{ matrix.python }}
149
- PYTHONDIR=~/python-debug/python-$PYTHONVERSION
150
- VENV=$PYTHONDIR/env
151
- ./misc/build-debug-python.sh $PYTHONVERSION $PYTHONDIR $VENV
152
- # TODO: does this do anything? env vars aren't passed to the next step right
153
- source $VENV/bin/activate
154
142
- name : Latest dev build
155
143
if : ${{ endsWith(matrix.python, '-dev') }}
156
144
run : |
157
145
git clone --depth 1 https://github.com/python/cpython.git /tmp/cpython --branch $( echo ${{ matrix.python }} | sed 's/-dev//' )
158
146
cd /tmp/cpython
159
147
echo git rev-parse HEAD; git rev-parse HEAD
160
148
git show --no-patch
161
- sudo apt-get update
162
- sudo apt-get install -y --no-install-recommends \
149
+ sudo apt-get update -q
150
+ sudo apt-get install --q y --no-install-recommends \
163
151
build-essential gdb lcov libbz2-dev libffi-dev libgdbm-dev liblzma-dev libncurses5-dev \
164
152
libreadline6-dev libsqlite3-dev libssl-dev lzma lzma-dev tk-dev uuid-dev zlib1g-dev
165
153
./configure --prefix=/opt/pythondev
@@ -168,6 +156,23 @@ jobs:
168
156
sudo ln -s /opt/pythondev/bin/python3 /opt/pythondev/bin/python
169
157
sudo ln -s /opt/pythondev/bin/pip3 /opt/pythondev/bin/pip
170
158
echo "/opt/pythondev/bin" >> $GITHUB_PATH
159
+ - name : Debug build
160
+ if : ${{ matrix.debug_build }}
161
+ run : |
162
+ git clone --depth 1 https://github.com/python/cpython.git /tmp/cpython --branch ${{ matrix.python }}
163
+ cd /tmp/cpython
164
+ echo git rev-parse HEAD; git rev-parse HEAD
165
+ git show --no-patch
166
+ sudo apt-get update -q
167
+ sudo apt-get install --q y --no-install-recommends \
168
+ build-essential gdb lcov libbz2-dev libffi-dev libgdbm-dev liblzma-dev libncurses5-dev \
169
+ libreadline6-dev libsqlite3-dev libssl-dev lzma lzma-dev tk-dev uuid-dev zlib1g-dev
170
+ ./configure CFLAGS="-DPy_DEBUG -DPy_TRACE_REFS -DPYMALLOC_DEBUG" --with-pydebug -with-trace-refs --prefix=/opt/pythondev
171
+ make -j$(nproc)
172
+ sudo make install
173
+ sudo ln -s /opt/pythondev/bin/python3 /opt/pythondev/bin/python
174
+ sudo ln -s /opt/pythondev/bin/pip3 /opt/pythondev/bin/pip
175
+ echo "/opt/pythondev/bin" >> $GITHUB_PATH
171
176
- uses : actions/setup-python@v5
172
177
if : ${{ !(matrix.debug_build || endsWith(matrix.python, '-dev')) }}
173
178
with :
0 commit comments