@@ -29,15 +29,15 @@ jobs:
2929 - python : " 3.13"
3030 numpy : " 2.3"
3131 steps :
32- - uses : actions/checkout@v4
32+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3333 with :
3434 fetch-depth : 0
3535
3636 - name : Set pkgs_dirs
3737 run : |
3838 echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
3939 - name : Cache conda packages
40- uses : actions/cache@v4
40+ uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
4141 env :
4242 CACHE_NUMBER : 0 # Increase to reset cache
4343 with :
6464 $CHANNELS \
6565 conda-recipe-cf
6666 - name : Upload artifact
67- uses : actions/upload-artifact@v4
67+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6868 with :
6969 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
7070 path : /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.conda
@@ -86,17 +86,18 @@ jobs:
8686 env :
8787 conda-bld : C:\Miniconda\conda-bld\win-64\
8888 steps :
89- - uses : actions/checkout@v4
89+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9090 with :
9191 fetch-depth : 0
92- - uses : conda-incubator/setup-miniconda@v3
92+ - uses : conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
9393 with :
9494 conda-remove-defaults : true
95- auto-activate-base : true
96- activate-environment : " "
95+ channels : conda-forge
96+ auto-activate : true
97+ activate-environment : base
9798
9899 - name : Cache conda packages
99- uses : actions/cache@v4
100+ uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
100101 env :
101102 CACHE_NUMBER : 3 # Increase to reset cache
102103 with :
@@ -107,13 +108,13 @@ jobs:
107108 ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
108109 ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
109110 - name : Install conda-build
110- run : conda install conda-build
111+ run : conda install -n base -y conda-build
111112 - name : Setup MSVC
112113 uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
113114 - name : Build conda package
114115 run : conda build --no-test --python ${{ matrix.python }} --numpy ${{ matrix.numpy }} -c conda-forge --override-channels conda-recipe-cf
115116 - name : Upload artifact
116- uses : actions/upload-artifact@v4
117+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
117118 with :
118119 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
119120 path : ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.conda
@@ -139,7 +140,7 @@ jobs:
139140
140141 steps :
141142 - name : Download artifact
142- uses : actions/download-artifact@v4
143+ uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
143144 with :
144145 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
145146 - name : Add conda to system path
@@ -166,7 +167,7 @@ jobs:
166167 run : |
167168 echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc
168169 - name : Cache conda packages
169- uses : actions/cache@v4
170+ uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
170171 env :
171172 CACHE_NUMBER : 0 # Increase to reset cache
172173 with :
@@ -212,14 +213,15 @@ jobs:
212213
213214 steps :
214215 - name : Download artifact
215- uses : actions/download-artifact@v4
216+ uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
216217 with :
217218 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
218- - uses : conda-incubator/setup-miniconda@v3
219+ - uses : conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
219220 with :
220221 conda-remove-defaults : true
221- auto-activate-base : true
222- activate-environment : " "
222+ channels : conda-forge
223+ auto-activate : true
224+ activate-environment : base
223225 - name : Install conda-build
224226 # Needed to be able to run conda index
225227 run : conda install conda-build
@@ -243,7 +245,7 @@ jobs:
243245 conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} numpy=${{ matrix.numpy }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
244246 more lockfile
245247 - name : Cache conda packages
246- uses : actions/cache@v4
248+ uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
247249 env :
248250 CACHE_NUMBER : 3 # Increase to reset cache
249251 with :
0 commit comments