Skip to content

Commit c4f1d72

Browse files
committed
modify conda-index installation
align with conda-build
1 parent 1268139 commit c4f1d72

1 file changed

Lines changed: 26 additions & 4 deletions

File tree

.github/workflows/conda-package.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,13 @@ jobs:
5656
conda update -n base --all
5757
- name: Install conda-build
5858
run: |
59-
conda install conda-build -c conda-forge --override-channels
59+
conda install -n base conda-build -c conda-forge --override-channels
6060
- name: Show Conda info
6161
run: |
6262
conda info --all
63+
- name: List base environment packages
64+
run: |
65+
conda list -n base
6366
- name: Store conda paths as envs
6467
shell: bash -l {0}
6568
run: |
@@ -176,11 +179,18 @@ jobs:
176179
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
177180
- name: Add conda to system path
178181
run: echo "$CONDA/bin" >> "$GITHUB_PATH"
179-
- name: Install conda-index
180-
# Needed to be able to run conda index
182+
- name: Update conda
181183
run: |
182184
conda update -n base --all
183-
conda install conda-index -c conda-forge --override-channels
185+
- name: Install conda-index
186+
run: |
187+
conda install -n base conda-index -c conda-forge --override-channels
188+
- name: Show Conda info
189+
run: |
190+
conda info --all
191+
- name: List base environment packages
192+
run: |
193+
conda list -n base
184194
- name: Create conda channel
185195
run: |
186196
mkdir -p "$GITHUB_WORKSPACE/channel/linux-64"
@@ -281,10 +291,22 @@ jobs:
281291
activate-environment: ${{ env.TEST_ENV_NAME }}
282292
python-version: ${{ matrix.python }}
283293

294+
- name: Update conda
295+
run: |
296+
conda update -n base --all
297+
284298
- name: Install conda-index
285299
run: |
286300
conda install -n base conda-index
287301
302+
- name: Show Conda info
303+
run: |
304+
conda info --all
305+
306+
- name: List base environment packages
307+
run: |
308+
conda list -n base
309+
288310
- name: Create conda channel with the artifact bit
289311
shell: cmd /C CALL {0}
290312
run: |

0 commit comments

Comments
 (0)