File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments