AML-146 Fix MessageStream
to not crash when __cinit__
is interrupted
#1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux Tests | |
on: | |
push: | |
branches: | |
- main | |
- maintenance/** | |
pull_request: | |
branches: | |
- main | |
- maintenance/** | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
Python-38-dbg: | |
name: Python 3.8-dbg | |
if: "github.repository == 'scipy/scipy' || github.repository == ''" | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configuring Test Environment | |
run: | | |
sudo apt-get update | |
sudo apt install python3.8-dbg python3.8-dev libatlas-base-dev liblapack-dev gfortran libgmp-dev libmpfr-dev ccache swig libmpc-dev | |
free -m | |
python3.8-dbg --version # just to check | |
export NPY_NUM_BUILD_JOBS=2 | |
uname -a | |
df -h | |
ulimit -a | |
set -e -o pipefail | |
mkdir builds | |
cd builds | |
- name: Installing packages | |
run: | | |
python3.8-dbg -c 'import sys; print("Python debug build:", hasattr(sys, "gettotalrefcount"))' | |
python3.8-dbg -m pip install --upgrade pip "setuptools<60.0" wheel | |
python3.8-dbg -m pip install --upgrade numpy cython pytest pytest-xdist pytest-timeout pybind11 | |
python3.8-dbg -m pip install --upgrade mpmath gmpy2 pythran threadpoolctl pooch | |
python3.8-dbg -m pip uninstall -y nose | |
cd .. | |
- name: Building SciPy | |
run: python3.8-dbg -u runtests.py -g -j2 --build-only | |
- name: Testing SciPy | |
if: ${{ github.event_name == 'pull_request' }} | |
run: | | |
python3.8-dbg -u runtests.py -n -g -j2 -m fast -- -rfEX --durations=10 --timeout=60 2>&1 | tee runtests.log | |
python3.8-dbg tools/validate_runtests_log.py fast < runtests.log | |
- name: Dynamic symbol hiding check on Linux | |
if: ${{ github.event_name == 'pull_request' }} | |
run: ./tools/check_pyext_symbol_hiding.sh build |