3636 echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
3737
3838 - name : Cache conda packages
39- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
39+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
4040 env :
4141 CACHE_NUMBER : 0 # Increase to reset cache
4242 with :
8686
8787 steps :
8888 - name : Download artifact
89- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3 .0
89+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0 .0
9090 with :
9191 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
9292
@@ -126,7 +126,7 @@ jobs:
126126 echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
127127
128128 - name : Cache conda packages
129- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
129+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
130130 env :
131131 CACHE_NUMBER : 0 # Increase to reset cache
132132 with :
@@ -140,7 +140,13 @@ jobs:
140140 - name : Install mkl_fft
141141 run : |
142142 CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
143- conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=${{ env.PACKAGE_VERSION }} python=${{ matrix.python }} pytest "scipy>=1.10" $CHANNELS
143+ conda create -n ${{ env.TEST_ENV_NAME }} $PACKAGE_NAME=${{ env.PACKAGE_VERSION }} python=${{ matrix.python }} pytest $CHANNELS
144+ if [[ "${{ matrix.python }}" != 3.9* ]]; then
145+ # Intel channel only has scipy=1.10 for Python 3.9, which needs mkl<2025
146+ # while scipy needs to install numpy and mkl_random and mkl_random-1.2.11 requires mkl>=2025
147+ # so avoid installing scipy for Python 3.9 which means third_party/scipy tests will not run
148+ conda install -n ${{ env.TEST_ENV_NAME }} "scipy>=1.10" $CHANNELS
149+ fi
144150 # Test installed packages
145151 conda list -n ${{ env.TEST_ENV_NAME }}
146152
@@ -180,7 +186,7 @@ jobs:
180186 conda install -n base conda-build
181187
182188 - name : Cache conda packages
183- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
189+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
184190 env :
185191 CACHE_NUMBER : 3 # Increase to reset cache
186192 with :
@@ -229,7 +235,7 @@ jobs:
229235
230236 steps :
231237 - name : Download artifact
232- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3 .0
238+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0 .0
233239 with :
234240 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
235241
@@ -285,7 +291,7 @@ jobs:
285291 run : Get-Content -Path .\lockfile
286292
287293 - name : Cache conda packages
288- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
294+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
289295 env :
290296 CACHE_NUMBER : 0 # Increase to reset cache
291297 with :
@@ -307,8 +313,11 @@ jobs:
307313 FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
308314 SET PACKAGE_VERSION=%%F
309315 )
310- SET "TEST_DEPENDENCIES=pytest scipy "
316+ SET "TEST_DEPENDENCIES=pytest"
311317 conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% %TEST_DEPENDENCIES% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
318+ if ("${{ matrix.python }}" -ne "3.9") {
319+ conda install -n ${{ env.TEST_ENV_NAME }} scipy -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
320+ }
312321
313322 - name : Report content of test environment
314323 shell : cmd /C CALL {0}
0 commit comments