@@ -73,11 +73,14 @@ jobs:
7373 - uses : actions/checkout@v4
7474 with :
7575 fetch-depth : 0
76- - uses : conda-incubator/setup-miniconda@v3
76+
77+ - uses : conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
7778 with :
78- conda-remove-defaults : true
79- auto-activate-base : true
80- activate-environment : " "
79+ miniforge-version : latest
80+ use-mamba : ' true'
81+ conda-remove-defaults : ' true'
82+ activate-environment : ' build'
83+ python-version : ' 3.13' # no python 3.14 support by conda-build
8184
8285 - name : Cache conda packages
8386 uses : actions/cache@v4
@@ -90,17 +93,30 @@ jobs:
9093 restore-keys : |
9194 ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
9295 ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
96+
9397 - name : Install conda-build
9498 run : conda install conda-build
95- - name : Setup MSVC
96- uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
99+
100+ - name : Store conda paths as envs
101+ shell : bash -el {0}
102+ run : |
103+ echo "CONDA_BLD=$CONDA_PREFIX\\conda-bld\\win-64\\" >> $GITHUB_ENV
104+ echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE\\" >> $GITHUB_ENV
105+
97106 - name : Build conda package
98107 run : conda build --no-test --python ${{ matrix.python }} -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels conda-recipe
108+
99109 - name : Upload artifact
100110 uses : actions/upload-artifact@v4
101111 with :
102112 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
103- path : ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.conda
113+ path : ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.conda
114+
115+ - name : Upload wheels artifact
116+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
117+ with :
118+ name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
119+ path : ${{ env.WHEELS_OUTPUT_FOLDER }}mkl_service-*.whl
104120
105121 test_linux :
106122 needs : build_linux
@@ -196,22 +212,28 @@ jobs:
196212 uses : actions/download-artifact@v4
197213 with :
198214 name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
199- - uses : conda-incubator/setup-miniconda@v3
215+
216+ - uses : conda-incubator/setup-miniconda@835234971496cad1653abb28a638a281cf32541f # v3.2.0
200217 with :
201- conda-remove-defaults : true
202- auto-activate-base : true
203- activate-environment : " "
204- - name : Install conda-build
205- # Needed to be able to run conda index
206- run : conda install conda-build
218+ miniforge-version : latest
219+ use-mamba : ' true'
220+ conda-remove-defaults : ' true'
221+ activate-environment : ' test'
222+ python-version : ' 3.13' # no python 3.14 support by conda-index
223+
224+ - name : Install conda-index
225+ run : conda install conda-index
226+
207227 - name : Create conda channel
208228 run : |
209229 mkdir ${{ env.GITHUB_WORKSPACE }}\channel\win-64
210230 move ${{ env.PACKAGE_NAME }}-*.conda ${{ env.GITHUB_WORKSPACE }}\channel\win-64
211- conda index ${{ env.GITHUB_WORKSPACE }}/channel
231+ python -m conda_index ${{ env.GITHUB_WORKSPACE }}/channel
232+
212233 # Test channel
213234 conda search ${{ env.PACKAGE_NAME }} -c ${{ env.GITHUB_WORKSPACE }}/channel --override-channels --info --json > ${{ env.GITHUB_WORKSPACE }}\ver.json
214235 more ${{ env.GITHUB_WORKSPACE }}\ver.json
236+
215237 - name : Collect dependencies
216238 shell : cmd
217239 run : |
@@ -223,6 +245,7 @@ jobs:
223245 )
224246 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
225247 more lockfile
248+
226249 - name : Cache conda packages
227250 uses : actions/cache@v4
228251 env :
@@ -250,6 +273,7 @@ jobs:
250273 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 }}
251274 # Test installed packages
252275 conda list
276+
253277 - name : Run tests
254278 run : |
255279 conda activate -n ${{ env.TEST_ENV_NAME }}
0 commit comments