Skip to content

Another attempt to fix workflow #28

Another attempt to fix workflow

Another attempt to fix workflow #28

Workflow file for this run

name: Editable build using pip and pre-release NumPy
on: push
permissions: read-all
env:
PACKAGE_NAME: mkl_fft
MODULE_NAME: mkl_fft
TEST_ENV_NAME: test_mkl_fft
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
use_pre: ["", "--pre"]
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:
auto-activate-base: true
use-mamba: true
mamba-version: "*"
channels: conda-forge
activate-environment: true
python-version: ${{ matrix.python }}
- name: Install MKL
run: |
mamba install -c conda-forge mkl-devel mkl-service --override-channels
mamba activate
python -c "import sys; print(sys.executable)"
which python
python -c "import mkl; print(mkl.__file__)"
- name: Build conda package
run: |
mamba activate
pip install --no-cache-dir cython pytest hypothesis
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
echo "CONDA_PREFFIX is '${CONDA_PREFIX}'"
export MKLROOT=${CONDA_PREFIX}
pip install -e . --no-build-isolation --verbose --no-deps
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MKLROOT}/lib
python -m pytest -v mkl_fft/tests/test_fft1d.py mkl_fft/tests/test_fftnd.py