File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ name: Conda package
2
2
3
3
on : push
4
4
5
+ permissions : read-all
6
+
5
7
env :
6
8
PACKAGE_NAME : mkl_fft
7
9
MODULE_NAME : mkl_fft
10
+ TEST_ENV_NAME : test_mkl_fft
8
11
9
12
jobs :
10
13
build :
86
89
- name : Collect dependencies
87
90
run : |
88
91
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
89
- conda create -n test_mkl_fft $PACKAGE_NAME python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile
92
+ conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME python=${{ matrix.python }} $CHANNELS --only-deps --dry-run > lockfile
90
93
- name : Display lockfile
91
94
run : cat lockfile
92
95
- name : Set pkgs_dirs
@@ -107,13 +110,13 @@ jobs:
107
110
- name : Install mkl_fft
108
111
run : |
109
112
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
110
- conda create -n test_mkl_fft python=${{ matrix.python }} $PACKAGE_NAME pytest $CHANNELS
113
+ conda create -n ${{ env.TEST_ENV_NAME }} python=${{ matrix.python }} $PACKAGE_NAME pytest $CHANNELS
111
114
# Test installed packages
112
- conda list -n test_mkl_fft
115
+ conda list -n ${{ env.TEST_ENV_NAME }}
113
116
- name : Run tests
114
117
run : |
115
118
source $CONDA/etc/profile.d/conda.sh
116
- conda activate test_mkl_fft
119
+ conda activate ${{ env.TEST_ENV_NAME }}
117
120
pytest -v --pyargs $MODULE_NAME
118
121
119
122
build_windows :
You can’t perform that action at this time.
0 commit comments