@@ -128,11 +128,13 @@ jobs:
128
128
- uses : actions/checkout@v3
129
129
with :
130
130
fetch-depth : 0
131
- - uses : conda-incubator/setup-miniconda@v2
131
+
132
+ - uses : conda-incubator/setup-miniconda@v3
132
133
with :
133
- auto-activate-base : true
134
- conda-build-version : " *"
135
- activate-environment : true
134
+ miniforge-variant : Miniforge
135
+ miniforge-version : latest
136
+ activate-environment : build
137
+ channels : conda-forge
136
138
python-version : ${{ matrix.python }}
137
139
138
140
- name : Cache conda packages
@@ -146,8 +148,18 @@ jobs:
146
148
restore-keys : |
147
149
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
148
150
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
151
+
152
+ - name : Install conda build
153
+ run : |
154
+ conda activate
155
+ conda install -y conda-build
156
+ conda list -n base
157
+
149
158
- name : Build conda package
150
- run : conda build --no-test --python ${{ matrix.python }} -c conda-forge -c https://software.repos.intel.com/python/conda --override-channels conda-recipe-cf
159
+ run : |
160
+ conda activate
161
+ conda build --no-test --python ${{ matrix.python }} -c conda-forge -c https://software.repos.intel.com/python/conda --override-channels conda-recipe-cf
162
+
151
163
- name : Upload artifact
152
164
uses : actions/upload-artifact@v3
153
165
with :
@@ -175,27 +187,32 @@ jobs:
175
187
uses : actions/download-artifact@v3
176
188
with :
177
189
name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
178
- - uses : conda-incubator/setup-miniconda@v2
190
+ - uses : conda-incubator/setup-miniconda@v3
179
191
with :
180
- auto-update-conda : true
181
- conda-build- version : ' * '
182
- miniconda-version : ' latest '
183
- activate-environment : mkl_umath_test
192
+ miniforge-variant : Miniforge
193
+ miniforge- version : latest
194
+ activate-environment : build
195
+ channels : conda-forge
184
196
python-version : ${{ matrix.python }}
197
+
185
198
- name : Create conda channel with the artifact bit
186
199
shell : cmd /C CALL {0}
187
200
run : |
188
201
echo ${{ env.workdir }}
189
202
mkdir ${{ env.workdir }}\channel\win-64
190
203
move ${{ env.PACKAGE_NAME }}-*.tar.bz2 ${{ env.workdir }}\channel\win-64
191
204
dir ${{ env.workdir }}\channel\win-64
205
+
192
206
- name : Index the channel
193
207
shell : cmd /C CALL {0}
194
- run : conda index ${{ env.workdir }}\channel
208
+ run : |
209
+ conda activate
210
+ conda index ${{ env.workdir }}\channel
195
211
196
212
- name : Dump mkl_umath version info from created channel into ver.json
197
213
shell : cmd /C CALL {0}
198
214
run : |
215
+ conda activate
199
216
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json > ${{ env.workdir }}\ver.json
200
217
- name : Output content of produced ver.json
201
218
shell : pwsh
@@ -210,6 +227,7 @@ jobs:
210
227
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
211
228
SET PACKAGE_VERSION=%%F
212
229
)
230
+ conda activate
213
231
conda install -n mkl_umath_test ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
214
232
- name : Display lockfile content
215
233
shell : pwsh
@@ -241,6 +259,7 @@ jobs:
241
259
- name : Report content of test environment
242
260
shell : cmd /C CALL {0}
243
261
run : |
262
+ conda activate
244
263
echo "Value of CONDA enviroment variable was: " %CONDA%
245
264
echo "Value of CONDA_PREFIX enviroment variable was: " %CONDA_PREFIX%
246
265
conda info && conda list -n mkl_umath_test
0 commit comments