File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ permissions: read-all
7
7
env :
8
8
PACKAGE_NAME : mkl_umath
9
9
MODULE_NAME : mkl_umath
10
+ VER_SCRIPT1 : " import json; f = open('ver.json', 'r'); j = json.load(f); f.close(); d = j['mkl_umath'][0];"
11
+ VER_SCRIPT2 : " print('='.join((d[s] for s in ('version', 'build'))))"
10
12
11
13
jobs :
12
14
build_linux :
@@ -252,6 +254,7 @@ jobs:
252
254
- name : Collect dependencies
253
255
shell : cmd /C CALL {0}
254
256
run : |
257
+ @ECHO ON
255
258
IF NOT EXIST ver.json (
256
259
copy /Y ${{ env.workdir }}\ver.json .
257
260
)
@@ -277,6 +280,8 @@ jobs:
277
280
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
278
281
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
279
282
283
+ # add intel-openmp as an explicit dependency
284
+ # to avoid it being missed when package version is specified exactly
280
285
- name : Install mkl_umath
281
286
shell : cmd /C CALL {0}
282
287
run : |
@@ -289,7 +294,9 @@ jobs:
289
294
SET PACKAGE_VERSION=%%F
290
295
)
291
296
SET "TEST_DEPENDENCIES=pytest pytest-cov"
292
- conda install -n mkl_umath_test ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% %TEST_DEPENDENCIES% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
297
+ SET "WORKAROUND_DEPENDENCIES=intel-openmp"
298
+ SET "DEPENDENCIES=%TEST_DEPENDENCIES% %WORKAROUND_DEPENDENCIES%"
299
+ conda install -n mkl_umath_test ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% %DEPENDENCIES% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
293
300
294
301
- name : Report content of test environment
295
302
shell : cmd /C CALL {0}
You can’t perform that action at this time.
0 commit comments