Skip to content

Commit 3c64a05

Browse files
Another attempt to fix workflow
1 parent 0df8baf commit 3c64a05

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/build_pip.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
defaults:
1616
run:
17-
shell: bash -l {0}
17+
shell: bash -el {0}
1818

1919
strategy:
2020
matrix:
@@ -34,32 +34,27 @@ jobs:
3434
- uses: conda-incubator/setup-miniconda@v3
3535
with:
3636
auto-activate-base: true
37-
use_mamba: true
37+
use-mamba: true
3838
mamba-version: "*"
3939
channels: conda-forge
4040
activate-environment: true
4141
python-version: ${{ matrix.python }}
4242

43-
- name: Initialize mamba
44-
run: mamba init
45-
4643
- name: Install MKL
4744
run: |
48-
mamba install -c conda-forge mkl-devel mkl-service --override-channels
49-
mamba activate
45+
conda install -c conda-forge mkl-devel mkl-service --override-channels
46+
conda activate
5047
python -c "import sys; print(sys.executable)"
5148
which python
5249
python -c "import mkl; print(mkl.__file__)"
5350
5451
- name: Build conda package
5552
run: |
56-
mamba activate
53+
conda activate
5754
pip install --no-cache-dir cython pytest hypothesis
5855
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
59-
mamba info --system --json > system_info.json
60-
export MY_PREFIX=$(jq -r '.conda_prefix' system_info.json)
61-
echo "MY_PREFFIX is '${MY_PREFIX}'"
62-
export MKLROOT=${MY_PREFIX}
56+
echo "CONDA_PREFFIX is '${CONDA_PREFIX}'"
57+
export MKLROOT=${CONDA_PREFIX}
6358
pip install -e . --no-build-isolation --verbose --no-deps
6459
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MKLROOT}/lib
6560
python -m pytest -v mkl_fft/tests/test_fft1d.py mkl_fft/tests/test_fftnd.py

0 commit comments

Comments
 (0)