Skip to content

Commit b8e6795

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

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/build_pip.yaml

+8-14
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:
@@ -33,33 +33,27 @@ jobs:
3333

3434
- uses: conda-incubator/setup-miniconda@v3
3535
with:
36-
auto-activate-base: true
37-
use_mamba: true
36+
use-mamba: true
3837
mamba-version: "*"
3938
channels: conda-forge
40-
activate-environment: true
39+
activate-environment: test
4140
python-version: ${{ matrix.python }}
4241

43-
- name: Initialize mamba
44-
run: mamba init
45-
4642
- name: Install MKL
4743
run: |
48-
mamba install -c conda-forge mkl-devel mkl-service --override-channels
49-
mamba activate
44+
conda install -c conda-forge mkl-devel mkl-service --override-channels
45+
conda activate test
5046
python -c "import sys; print(sys.executable)"
5147
which python
5248
python -c "import mkl; print(mkl.__file__)"
5349
5450
- name: Build conda package
5551
run: |
56-
mamba activate
52+
conda activate test
5753
pip install --no-cache-dir cython pytest hypothesis
5854
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}
55+
echo "CONDA_PREFFIX is '${CONDA_PREFIX}'"
56+
export MKLROOT=${CONDA_PREFIX}
6357
pip install -e . --no-build-isolation --verbose --no-deps
6458
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MKLROOT}/lib
6559
python -m pytest -v mkl_fft/tests/test_fft1d.py mkl_fft/tests/test_fftnd.py

0 commit comments

Comments
 (0)