update mkl_umath
to align it with numpy-2.*
#8
Workflow file for this run
This file contains hidden or 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: Editable build using pip | |
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'] | |
numpy_ver: ['1.26', '2.2'] | |
steps: | |
- name: Install jq | |
shell: bash -l {0} | |
run: | | |
sudo apt-get install jq | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
use-mamba: true | |
miniforge-version: latest | |
channels: conda-forge | |
conda-remove-defaults: true | |
activate-environment: test | |
python-version: ${{ matrix.python }} | |
- name: Install Compiler and MKL | |
run: | | |
conda install mkl-devel mkl-service dpcpp_linux-64 | |
python -c "import sys; print(sys.executable)" | |
which python | |
python -c "import mkl; print(mkl.__file__)" | |
- name: Build conda package | |
run: | | |
pip install --no-cache-dir scikit-build cmake ninja cython | |
pip install --no-cache-dir numpy==${{ matrix.numpy_ver }} | |
echo "CONDA_PREFFIX is '${CONDA_PREFIX}'" | |
export MKLROOT=${CONDA_PREFIX} | |
pip install .[test] --no-build-isolation --verbose | |
pip list | |
cd ../.. | |
python -m pytest -v mkl_umath/mkl_umath/mkl_umath/tests |