Skip to content

debug: py3.13 GHA build-with-clang segfault #242

debug: py3.13 GHA build-with-clang segfault

debug: py3.13 GHA build-with-clang segfault #242

Workflow file for this run

name: Build using pip and pre-release NumPy
on:
push:
branches:
- master
pull_request:
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python: ['3.10', '3.11', '3.12', '3.13', '3.14']
use_pre: ["", "--pre"]
steps:
- name: Install jq
shell: bash -l {0}
run: |
sudo apt-get install jq
- name: Checkout repo
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
with:
use-mamba: true
miniforge-version: latest
channels: https://software.repos.intel.com/python/conda, conda-forge
conda-remove-defaults: true
activate-environment: test
python-version: ${{ matrix.python }}
- name: Install Compiler and MKL
run: |
conda install mkl-devel tbb-devel dpcpp_linux-64
python -c "import sys; print(sys.executable)"
which python
- name: Build conda package
run: |
pip install --no-cache-dir scikit-build cmake ninja cython
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
echo "CONDA_PREFFIX is '${CONDA_PREFIX}'"
export MKLROOT=${CONDA_PREFIX}
CC=icx pip install . --no-build-isolation --no-deps --verbose
pip install --no-cache-dir pytest
pip list
# mkl_umath cannot be installed in editable mode, we need
# to change directory before importing it and running tests
cd ..
python -m pytest -v mkl_umath/mkl_umath/tests