Skip to content

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
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
use_pre: ["", "--pre"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
mamba-version: "*"
channels: conda-forge
activate-environment: true
python-version: ${{ matrix.python }}
- name: Set pkgs_dirs
run: |
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
- name: Add conda to system path
run: echo $CONDA/bin >> $GITHUB_PATH
- name: Install MKL
run: conda install -c conda-forge mkl-devel mkl-service --override-channels
- name: Build conda package
run: |
pip install --no-cache-dir cython pytest hypothesis
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
pip install -e . --no-build-isolation
python -m pytest -v mkl_fft/tests