File tree 1 file changed +8
-14
lines changed
1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
defaults :
16
16
run :
17
- shell : bash -l {0}
17
+ shell : bash -el {0}
18
18
19
19
strategy :
20
20
matrix :
@@ -33,33 +33,27 @@ jobs:
33
33
34
34
- uses : conda-incubator/setup-miniconda@v3
35
35
with :
36
- auto-activate-base : true
37
- use_mamba : true
36
+ use-mamba : true
38
37
mamba-version : " *"
39
38
channels : conda-forge
40
- activate-environment : true
39
+ activate-environment : test
41
40
python-version : ${{ matrix.python }}
42
41
43
- - name : Initialize mamba
44
- run : mamba init
45
-
46
42
- name : Install MKL
47
43
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
50
46
python -c "import sys; print(sys.executable)"
51
47
which python
52
48
python -c "import mkl; print(mkl.__file__)"
53
49
54
50
- name : Build conda package
55
51
run : |
56
- mamba activate
52
+ conda activate test
57
53
pip install --no-cache-dir cython pytest hypothesis
58
54
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}
63
57
pip install -e . --no-build-isolation --verbose --no-deps
64
58
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MKLROOT}/lib
65
59
python -m pytest -v mkl_fft/tests/test_fft1d.py mkl_fft/tests/test_fftnd.py
You can’t perform that action at this time.
0 commit comments