@@ -94,16 +94,13 @@ jobs:
9494 os : macos-13
9595 toxenv : py
9696 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"
107104
108105 - name : Type check our own code (py38-ubuntu)
109106 python : ' 3.8'
@@ -142,24 +139,15 @@ jobs:
142139 steps :
143140 - uses : actions/checkout@v4
144141
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
154142 - name : Latest dev build
155143 if : ${{ endsWith(matrix.python, '-dev') }}
156144 run : |
157145 git clone --depth 1 https://github.com/python/cpython.git /tmp/cpython --branch $( echo ${{ matrix.python }} | sed 's/-dev//' )
158146 cd /tmp/cpython
159147 echo git rev-parse HEAD; git rev-parse HEAD
160148 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 \
163151 build-essential gdb lcov libbz2-dev libffi-dev libgdbm-dev liblzma-dev libncurses5-dev \
164152 libreadline6-dev libsqlite3-dev libssl-dev lzma lzma-dev tk-dev uuid-dev zlib1g-dev
165153 ./configure --prefix=/opt/pythondev
@@ -168,6 +156,23 @@ jobs:
168156 sudo ln -s /opt/pythondev/bin/python3 /opt/pythondev/bin/python
169157 sudo ln -s /opt/pythondev/bin/pip3 /opt/pythondev/bin/pip
170158 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
171176 - uses : actions/setup-python@v5
172177 if : ${{ !(matrix.debug_build || endsWith(matrix.python, '-dev')) }}
173178 with :
0 commit comments