9
9
MODULE_NAME : mkl_umath
10
10
11
11
jobs :
12
- build :
12
+ build_linux :
13
13
runs-on : ubuntu-latest
14
14
strategy :
15
15
matrix :
60
60
name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
61
61
path : ${{ env.CONDA_BLD }}/${{ env.PACKAGE_NAME }}-*.tar.bz2
62
62
63
- test :
64
- needs : build
63
+ test_linux :
64
+ needs : build_linux
65
65
runs-on : ${{ matrix.runner }}
66
66
67
67
strategy :
@@ -205,18 +205,24 @@ jobs:
205
205
206
206
- uses : conda-incubator/setup-miniconda@v3
207
207
with :
208
- auto-update-conda : true
209
- conda-build-version : ' *'
210
208
miniforge-variant : Miniforge3
211
209
miniforge-version : latest
212
210
activate-environment : mkl_umath_test
213
- channels : conda-forge
211
+ channels : conda-forge,nodefaults
214
212
python-version : ${{ matrix.python }}
215
213
214
+ - name : Remove defaults channel
215
+ run : conda config --remove channels defaults
216
+
217
+ - name : Install conda-index
218
+ run : |
219
+ conda install -n base conda-index
220
+
216
221
- name : Create conda channel with the artifact bit
217
222
shell : cmd /C CALL {0}
218
223
run : |
219
224
echo ${{ env.workdir }}
225
+ mkdir ${{ env.workdir }}\channel
220
226
mkdir ${{ env.workdir }}\channel\win-64
221
227
move ${{ env.PACKAGE_NAME }}-*.tar.bz2 ${{ env.workdir }}\channel\win-64
222
228
dir ${{ env.workdir }}\channel\win-64
@@ -230,16 +236,20 @@ jobs:
230
236
shell : cmd /C CALL {0}
231
237
run : |
232
238
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json
239
+
233
240
- name : Dump mkl_umath version info from created channel into ver.json
234
241
shell : cmd /C CALL {0}
235
242
run : |
236
243
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json > ${{ env.workdir }}\ver.json
244
+
237
245
- name : Output content of workdir
238
246
shell : pwsh
239
247
run : Get-ChildItem -Path ${{ env.workdir }}
248
+
240
249
- name : Output content of produced ver.json
241
250
shell : pwsh
242
251
run : Get-Content -Path ${{ env.workdir }}\ver.json
252
+
243
253
- name : Collect dependencies
244
254
shell : cmd /C CALL {0}
245
255
run : |
@@ -251,9 +261,11 @@ jobs:
251
261
SET PACKAGE_VERSION=%%F
252
262
)
253
263
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
264
+
254
265
- name : Display lockfile content
255
266
shell : pwsh
256
267
run : Get-Content -Path .\lockfile
268
+
257
269
- name : Cache conda packages
258
270
uses : actions/cache@v4
259
271
env :
@@ -265,6 +277,7 @@ jobs:
265
277
restore-keys : |
266
278
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
267
279
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
280
+
268
281
- name : Install mkl_umath
269
282
shell : cmd /C CALL {0}
270
283
run : |
@@ -278,15 +291,16 @@ jobs:
278
291
)
279
292
SET "TEST_DEPENDENCIES=pytest pytest-cov"
280
293
conda install -n mkl_umath_test ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% %TEST_DEPENDENCIES% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
294
+
281
295
- name : Report content of test environment
282
296
shell : cmd /C CALL {0}
283
297
run : |
284
298
conda activate
285
299
echo "Value of CONDA enviroment variable was: " %CONDA%
286
300
echo "Value of CONDA_PREFIX enviroment variable was: " %CONDA_PREFIX%
287
301
conda info && conda list -n mkl_umath_test
302
+
288
303
- name : Run tests
289
304
shell : cmd /C CALL {0}
290
305
run : >-
291
306
conda activate mkl_umath_test && python -c "import mkl_umath, numpy as np; mkl_umath.use_in_numpy(); np.sin(np.linspace(0, 1, num=10**6));"
292
-
0 commit comments