Skip to content

Commit f2b55b6

Browse files
committed
Add openmp as explicit dependency in test_windows step
1 parent 59ad873 commit f2b55b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/conda-package.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ jobs:
225225
restore-keys: |
226226
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
227227
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
228+
229+
# add intel-openmp as an explicit dependency
230+
# to avoid it being missed when package version is specified exactly
228231
- name: Install mkl_random
229232
shell: cmd
230233
run: |
@@ -234,7 +237,8 @@ jobs:
234237
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
235238
SET PACKAGE_VERSION=%%F
236239
)
237-
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% pytest python=${{ matrix.python }} numpy=${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}
240+
SET "WORKAROUND_DEPENDENCIES=intel-openmp"
241+
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% %WORKAROUND_DEPENDENCIES% pytest python=${{ matrix.python }} numpy=${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }}
238242
# Test installed packages
239243
conda list
240244
- name: Run tests

0 commit comments

Comments
 (0)