Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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' }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
Loading