51
51
uses : actions/upload-artifact@v3
52
52
with :
53
53
name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
54
- path : /usr/share/miniconda /conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.tar.bz2
54
+ path : $CONDA /conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.tar.bz2
55
55
56
56
test :
57
57
needs : build
@@ -128,11 +128,13 @@ jobs:
128
128
- uses : actions/checkout@v3
129
129
with :
130
130
fetch-depth : 0
131
- - uses : conda-incubator/setup-miniconda@v2
131
+
132
+ - uses : conda-incubator/setup-miniconda@v3
132
133
with :
133
- auto-activate-base : true
134
- conda-build-version : " *"
135
- activate-environment : true
134
+ miniforge-variant : Miniforge3
135
+ miniforge-version : latest
136
+ activate-environment : build
137
+ channels : conda-forge
136
138
python-version : ${{ matrix.python }}
137
139
138
140
- name : Cache conda packages
@@ -146,8 +148,23 @@ jobs:
146
148
restore-keys : |
147
149
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
148
150
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
151
+
152
+ - name : Store conda paths as envs
153
+ shell : bash -l {0}
154
+ run : |
155
+ echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> $GITHUB_ENV
156
+
157
+ - name : Install conda build
158
+ run : |
159
+ conda activate
160
+ conda install -y conda-build
161
+ conda list -n base
162
+
149
163
- name : Build conda package
150
- run : conda build --no-test --python ${{ matrix.python }} -c conda-forge -c https://software.repos.intel.com/python/conda --override-channels conda-recipe-cf
164
+ run : |
165
+ conda activate
166
+ conda build --no-test --python ${{ matrix.python }} -c conda-forge -c https://software.repos.intel.com/python/conda --override-channels conda-recipe-cf
167
+
151
168
- name : Upload artifact
152
169
uses : actions/upload-artifact@v3
153
170
with :
@@ -175,27 +192,32 @@ jobs:
175
192
uses : actions/download-artifact@v3
176
193
with :
177
194
name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
178
- - uses : conda-incubator/setup-miniconda@v2
195
+ - uses : conda-incubator/setup-miniconda@v3
179
196
with :
180
- auto-update-conda : true
181
- conda-build- version : ' * '
182
- miniconda-version : ' latest '
183
- activate-environment : mkl_umath_test
197
+ miniforge-variant : Miniforge3
198
+ miniforge- version : latest
199
+ activate-environment : build
200
+ channels : conda-forge
184
201
python-version : ${{ matrix.python }}
202
+
185
203
- name : Create conda channel with the artifact bit
186
204
shell : cmd /C CALL {0}
187
205
run : |
188
206
echo ${{ env.workdir }}
189
207
mkdir ${{ env.workdir }}\channel\win-64
190
208
move ${{ env.PACKAGE_NAME }}-*.tar.bz2 ${{ env.workdir }}\channel\win-64
191
209
dir ${{ env.workdir }}\channel\win-64
210
+
192
211
- name : Index the channel
193
212
shell : cmd /C CALL {0}
194
- run : conda index ${{ env.workdir }}\channel
213
+ run : |
214
+ conda activate
215
+ conda index ${{ env.workdir }}\channel
195
216
196
217
- name : Dump mkl_umath version info from created channel into ver.json
197
218
shell : cmd /C CALL {0}
198
219
run : |
220
+ conda activate
199
221
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json > ${{ env.workdir }}\ver.json
200
222
- name : Output content of produced ver.json
201
223
shell : pwsh
@@ -210,6 +232,7 @@ jobs:
210
232
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
211
233
SET PACKAGE_VERSION=%%F
212
234
)
235
+ conda activate
213
236
conda install -n mkl_umath_test ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
214
237
- name : Display lockfile content
215
238
shell : pwsh
@@ -241,6 +264,7 @@ jobs:
241
264
- name : Report content of test environment
242
265
shell : cmd /C CALL {0}
243
266
run : |
267
+ conda activate
244
268
echo "Value of CONDA enviroment variable was: " %CONDA%
245
269
echo "Value of CONDA_PREFIX enviroment variable was: " %CONDA_PREFIX%
246
270
conda info && conda list -n mkl_umath_test
0 commit comments