Skip to content

Commit

Permalink
Another attempt to fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk committed May 26, 2024
1 parent 0df8baf commit 3c64a05
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/build_pip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
shell: bash -el {0}

strategy:
matrix:
Expand All @@ -34,32 +34,27 @@ jobs:
- uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
use_mamba: true
use-mamba: true
mamba-version: "*"
channels: conda-forge
activate-environment: true
python-version: ${{ matrix.python }}

- name: Initialize mamba
run: mamba init

- name: Install MKL
run: |
mamba install -c conda-forge mkl-devel mkl-service --override-channels
mamba activate
conda install -c conda-forge mkl-devel mkl-service --override-channels
conda activate
python -c "import sys; print(sys.executable)"
which python
python -c "import mkl; print(mkl.__file__)"
- name: Build conda package
run: |
mamba activate
conda activate
pip install --no-cache-dir cython pytest hypothesis
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
mamba info --system --json > system_info.json
export MY_PREFIX=$(jq -r '.conda_prefix' system_info.json)
echo "MY_PREFFIX is '${MY_PREFIX}'"
export MKLROOT=${MY_PREFIX}
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

0 comments on commit 3c64a05

Please sign in to comment.