Skip to content

Commit e9ee22c

Browse files
committed
modify conda-index installation
align with conda-build
1 parent 57cacca commit e9ee22c

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: |
@@ -183,11 +186,18 @@ jobs:
183186
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
184187
- name: Add conda to system path
185188
run: echo $CONDA/bin >> $GITHUB_PATH
186-
- name: Install conda-index
187-
# Needed to be able to run conda index
189+
- name: Update conda
188190
run: |
189191
conda update -n base --all
190-
conda install conda-index -c conda-forge --override-channels
192+
- name: Install conda-index
193+
run: |
194+
conda install -n base conda-index -c conda-forge --override-channels
195+
- name: Show Conda info
196+
run: |
197+
conda info --all
198+
- name: List base environment packages
199+
run: |
200+
conda list -n base
191201
- name: Create conda channel
192202
run: |
193203
mkdir -p $GITHUB_WORKSPACE/channel/linux-64
@@ -290,10 +300,22 @@ jobs:
290300
activate-environment: ${{ env.TEST_ENV_NAME }}
291301
python-version: ${{ matrix.python }}
292302

303+
- name: Update conda
304+
run: |
305+
conda update -n base --all
306+
293307
- name: Install conda-index
294308
run: |
295309
conda install -n base conda-index
296310
311+
- name: Show Conda info
312+
run: |
313+
conda info --all
314+
315+
- name: List base environment packages
316+
run: |
317+
conda list -n base
318+
297319
- name: Create conda channel with the artifact bit
298320
shell: cmd /C CALL {0}
299321
run: |

0 commit comments

Comments
 (0)