File tree 1 file changed +28
-9
lines changed
1 file changed +28
-9
lines changed Original file line number Diff line number Diff line change 12
12
jobs :
13
13
build :
14
14
runs-on : ubuntu-latest
15
+ defaults :
16
+ run :
17
+ shell : bash -el {0}
18
+
15
19
strategy :
16
20
matrix :
17
21
python : ['3.9', '3.10', '3.11', '3.12']
22
+ use_pre : ["", "--pre"]
18
23
19
24
steps :
25
+ - name : Install jq
26
+ shell : bash -l {0}
27
+ run : |
28
+ sudo apt-get install jq
29
+
20
30
- uses : actions/checkout@v4
21
31
with :
22
32
fetch-depth : 0
23
33
24
- - name : Set pkgs_dirs
25
- run : |
26
- echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
27
-
28
- - name : Add conda to system path
29
- run : echo $CONDA/bin >> $GITHUB_PATH
34
+ - uses : conda-incubator/setup-miniconda@v3
35
+ with :
36
+ use-mamba : true
37
+ mamba-version : " *"
38
+ channels : conda-forge
39
+ activate-environment : test
40
+ python-version : ${{ matrix.python }}
30
41
31
42
- name : Install MKL
32
- run : conda install -c conda-forge mkl-devel mkl-service --override-channels
43
+ run : |
44
+ conda install -c conda-forge mkl-devel mkl-service --override-channels
45
+ conda activate test
46
+ python -c "import sys; print(sys.executable)"
47
+ which python
48
+ python -c "import mkl; print(mkl.__file__)"
33
49
34
50
- name : Build conda package
35
51
run : |
52
+ conda activate test
36
53
pip install --no-cache-dir cython pytest hypothesis
37
- pip install --no-cache-dir numpy --pre
38
- pip install -e . --no-build-isolation
54
+ pip install --no-cache-dir numpy ${{ matrix.use_pre }}
55
+ echo "CONDA_PREFFIX is '${CONDA_PREFIX}'"
56
+ export MKLROOT=${CONDA_PREFIX}
57
+ pip install -e . --no-build-isolation --verbose --no-deps
39
58
python -m pytest -v mkl_fft/tests
You can’t perform that action at this time.
0 commit comments