8
8
9
9
jobs :
10
10
build :
11
- runs-on : ubuntu-latest
11
+ runs-on : ubuntu-20.04
12
12
strategy :
13
13
matrix :
14
14
python : [3.9]
15
15
steps :
16
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v3
17
17
with :
18
18
fetch-depth : 0
19
19
20
20
- name : Set pkgs_dirs
21
21
run : |
22
22
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
23
23
- name : Cache conda packages
24
- uses : actions/cache@v2
24
+ uses : actions/cache@v3
25
25
env :
26
26
CACHE_NUMBER : 0 # Increase to reset cache
27
27
with :
38
38
run : conda install conda-build
39
39
- name : Build conda package
40
40
run : |
41
- CHANNELS="-c intel -c defaults --override-channels"
41
+ CHANNELS="-c intel -c main --override-channels"
42
42
VERSIONS="--python ${{ matrix.python }}"
43
43
TEST="--no-test"
44
44
48
48
$CHANNELS \
49
49
conda-recipe
50
50
- name : Upload artifact
51
- uses : actions/upload-artifact@v2
51
+ uses : actions/upload-artifact@v3
52
52
with :
53
53
name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
54
54
path : /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.tar.bz2
@@ -61,14 +61,14 @@ jobs:
61
61
matrix :
62
62
python : [3.9]
63
63
experimental : [false]
64
- runner : [ubuntu-latest ]
64
+ runner : [ubuntu-20.04 ]
65
65
continue-on-error : ${{ matrix.experimental }}
66
66
env :
67
- CHANNELS : -c intel -c defaults --override-channels
67
+ CHANNELS : -c intel -c main --override-channels
68
68
69
69
steps :
70
70
- name : Download artifact
71
- uses : actions/download-artifact@v2
71
+ uses : actions/download-artifact@v3
72
72
with :
73
73
name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
74
74
- name : Add conda to system path
@@ -86,12 +86,14 @@ jobs:
86
86
- name : Collect dependencies
87
87
run : |
88
88
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
89
- conda install $PACKAGE_NAME python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile
89
+ conda create -n test_mkl_fft $PACKAGE_NAME python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile
90
+ - name : Display lockfile
91
+ run : cat lockfile
90
92
- name : Set pkgs_dirs
91
93
run : |
92
94
echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
93
95
- name : Cache conda packages
94
- uses : actions/cache@v2
96
+ uses : actions/cache@v3
95
97
env :
96
98
CACHE_NUMBER : 0 # Increase to reset cache
97
99
with :
@@ -105,9 +107,11 @@ jobs:
105
107
- name : Install mkl_fft
106
108
run : |
107
109
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
108
- conda install $PACKAGE_NAME pytest python=${{ matrix.python }} $CHANNELS
110
+ conda create -n test_mkl_fft python=${{ matrix.python }} "libffi>=3.4" $PACKAGE_NAME pytest $CHANNELS
109
111
# Test installed packages
110
- conda list
112
+ conda list -n test_mkl_fft
111
113
- name : Run tests
112
114
run : |
115
+ source $CONDA/etc/profile.d/conda.sh
116
+ conda activate test_mkl_fft
113
117
python -m pytest --pyargs $MODULE_NAME
0 commit comments