Skip to content

Commit 0a092df

Browse files
committed
add intel-openmp as an explicit dependency in conda-package
1 parent a3a5022 commit 0a092df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/conda-package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ jobs:
280280
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
281281
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
282282
283+
# add intel-openmp as an explicit dependency
284+
# to avoid it being missed when package version is specified exactly
283285
- name: Install mkl_umath
284286
shell: cmd /C CALL {0}
285287
run: |
@@ -292,7 +294,9 @@ jobs:
292294
SET PACKAGE_VERSION=%%F
293295
)
294296
SET "TEST_DEPENDENCIES=pytest pytest-cov"
295-
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 }}
296300
297301
- name: Report content of test environment
298302
shell: cmd /C CALL {0}

0 commit comments

Comments
 (0)