Skip to content

Commit a100705

Browse files
authored
Pin conda-build to latest version (24.1.2) (#1721)
* Pin conda-build to latest version (24.1.2) * Use conda-index package instead of conda-build
1 parent fb116ad commit a100705

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/conda-package.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ env:
1212
PACKAGE_NAME: dpnp
1313
MODULE_NAME: dpnp
1414
CHANNELS: '-c dppy/label/dev -c intel -c conda-forge --override-channels'
15+
CONDA_BUILD_VERSION: '24.1.2'
16+
CONDA_INDEX_VERSION: '0.4.0'
1517
# TODO: to add test_arraymanipulation.py back to the scope once crash on Windows is gone
1618
TEST_SCOPE: >-
1719
test_arraycreation.py
@@ -102,7 +104,7 @@ jobs:
102104
(echo CONDA_BLD=%CONDA_PREFIX%\conda-bld\win-64\) >> %GITHUB_ENV%
103105
104106
- name: Install conda-build
105-
run: conda install conda-build=3.28.4
107+
run: conda install conda-build=${{ env.CONDA_BUILD_VERSION}}
106108

107109
- name: Cache conda packages
108110
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
@@ -171,12 +173,12 @@ jobs:
171173
miniconda-version: 'latest'
172174
activate-environment: 'test'
173175

174-
# Needed to be able to run conda index
175-
- name: Install conda-build
176-
run: conda install conda-build=3.28.4
176+
- name: Install conda-index
177+
run: conda install conda-index=${{ env.CONDA_INDEX_VERSION}}
177178

178179
- name: Create conda channel
179-
run: conda index ${{ env.channel-path }}
180+
run: |
181+
python -m conda_index ${{ env.channel-path }}
180182
181183
- name: Test conda channel
182184
run: |
@@ -287,12 +289,13 @@ jobs:
287289
(echo CONDA_LIB_PATH=%CONDA_PREFIX%\Library\lib\) >> %GITHUB_ENV%
288290
(echo CONDA_LIB_BIN_PATH=%CONDA_PREFIX%\Library\bin\) >> %GITHUB_ENV%
289291
290-
# Needed to be able to run conda index
291-
- name: Install conda-build
292-
run: conda install conda-build=3.28.4
292+
- name: Install conda-index
293+
run: conda install conda-index=${{ env.CONDA_INDEX_VERSION}}
293294

294295
- name: Create conda channel
295-
run: conda index ${{ env.channel-path }}
296+
run: |
297+
@echo on
298+
python -m conda_index ${{ env.channel-path }}
296299
297300
- name: Test conda channel
298301
run: |

0 commit comments

Comments
 (0)