Skip to content

Commit bb36861

Browse files
committed
fix errors/warnings when activating environment in Windows jobs
1 parent ee7565e commit bb36861

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/conda-package.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ jobs:
100100
with:
101101
miniforge-variant: Miniforge3
102102
miniforge-version: latest
103-
activate-environment: build
103+
auto-activate: true
104+
activate-environment: base
104105
channels: conda-forge
105106
conda-remove-defaults: true
106107
python-version: ${{ matrix.python }}
107108

108109
- name: Install conda build
109110
run: |
110-
conda activate
111-
conda install -y conda-build
111+
conda install -n base -y conda-build
112112
conda list -n base
113113
114114
- name: Cache conda packages
@@ -133,7 +133,6 @@ jobs:
133133
env:
134134
OVERRIDE_INTEL_IPO: 1 # IPO requires more resources that GH actions VM provides
135135
run: |
136-
conda activate
137136
# TODO: roll back use of Intel channel when 2025.1 is available on conda-forge
138137
conda build --no-test --python ${{ matrix.python }} --numpy 2.0 -c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels conda-recipe
139138
@@ -484,8 +483,8 @@ jobs:
484483
miniforge-version: latest
485484
channels: conda-forge
486485
conda-remove-defaults: true
487-
auto-activate-base: true
488-
activate-environment: ""
486+
auto-activate: true
487+
activate-environment: base
489488

490489
- name: Install anaconda-client
491490
run: conda install anaconda-client -c conda-forge --override-channels

0 commit comments

Comments
 (0)