diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0444b21d7ce86..3dedf7f19407d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -97,15 +97,12 @@ jobs: toxenv: py tox_extra_args: "-n 3 mypyc/test/test_run.py mypyc/test/test_external.py" - # This is broken. See - # - https://github.com/python/mypy/issues/17819 - # - https://github.com/python/mypy/pull/17822 - # - name: mypyc runtime tests with py310-debug-build-ubuntu - # python: '3.10' - # os: ubuntu-latest - # toxenv: py - # tox_extra_args: "-n 4 mypyc/test/test_run.py mypyc/test/test_external.py" - # debug_build: true + - name: mypyc tests with py314-debug-build-ubuntu + python: '3.14' + os: ubuntu-26.04 + toxenv: py + tox_extra_args: "-n 4 mypyc/test" + debug_build: true - name: Parallel tests with py314-ubuntu, interpreted python: '3.14' @@ -174,7 +171,7 @@ jobs: sudo apt-get update -q sudo apt-get install -q -y --no-install-recommends \ build-essential gdb lcov libbz2-dev libffi-dev libgdbm-dev liblzma-dev libncurses5-dev \ - libreadline6-dev libsqlite3-dev libssl-dev lzma lzma-dev tk-dev uuid-dev zlib1g-dev + libreadline6-dev libsqlite3-dev libssl-dev lzma tk-dev uuid-dev zlib1g-dev ./configure --prefix=/opt/pythondev make -j$(nproc) sudo make install @@ -191,8 +188,8 @@ jobs: sudo apt-get update -q sudo apt-get install -q -y --no-install-recommends \ build-essential gdb lcov libbz2-dev libffi-dev libgdbm-dev liblzma-dev libncurses5-dev \ - libreadline6-dev libsqlite3-dev libssl-dev lzma lzma-dev tk-dev uuid-dev zlib1g-dev - ./configure CFLAGS="-DPy_DEBUG -DPy_TRACE_REFS -DPYMALLOC_DEBUG" --with-pydebug -with-trace-refs --prefix=/opt/pythondev + libreadline6-dev libsqlite3-dev libssl-dev lzma tk-dev uuid-dev zlib1g-dev + ./configure --with-pydebug --prefix=/opt/pythondev make -j$(nproc) sudo make install sudo ln -s /opt/pythondev/bin/python3 /opt/pythondev/bin/python @@ -226,6 +223,10 @@ jobs: - name: Setup tox environment run: | tox run -e ${{ matrix.toxenv }} --notest + - name: Verify debug interpreter in tox + if: ${{ matrix.debug_build }} + run: | + tox exec -e ${{ matrix.toxenv }} --skip-pkg-install -- python -c 'import sysconfig; assert sysconfig.get_config_var("Py_DEBUG")' - name: Test run: tox run -e ${{ matrix.toxenv }} --skip-pkg-install -- ${{ matrix.tox_extra_args }} continue-on-error: ${{ matrix.allow_failure == 'true' }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ffceffc7a4e6f..abecc834c5cfb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,7 +29,7 @@ repos: - --ignore-words-list=HAX,Nam,ccompiler,keep-alives,ot,statics,whet,zar exclude: ^(mypy/test/|mypy/typeshed/|mypyc/test-data/|test-data/).+$ - repo: https://github.com/rhysd/actionlint - rev: 03d0035246f3e81f36aed592ffb4bebf33a03106 # frozen: v1.7.7 + rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12 hooks: - id: actionlint args: [