Skip to content

Commit 514d7b7

Browse files
committed
use dedicated build environments in Windows conda workflows
1 parent 7a1d8ab commit 514d7b7

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/conda-package-cf.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ jobs:
7878

7979
build_windows:
8080
runs-on: windows-latest
81-
81+
defaults:
82+
run:
83+
shell: cmd /C CALL {0}
8284
strategy:
8385
matrix:
8486
include:
@@ -103,12 +105,9 @@ jobs:
103105

104106
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
105107
with:
106-
miniforge-variant: Miniforge3
107108
miniforge-version: latest
108-
auto-activate: true
109-
activate-environment: base
109+
activate-environment: build
110110
channels: conda-forge
111-
conda-remove-defaults: true
112111
python-version: ${{ matrix.python }}
113112

114113
- name: Cache conda packages
@@ -225,7 +224,9 @@ jobs:
225224
test_windows:
226225
needs: build_windows
227226
runs-on: windows-latest
228-
227+
defaults:
228+
run:
229+
shell: cmd /C CALL {0}
229230
strategy:
230231
matrix:
231232
include:
@@ -253,7 +254,6 @@ jobs:
253254
with:
254255
miniforge-version: latest
255256
channels: conda-forge
256-
conda-remove-defaults: true
257257
activate-environment: ${{ env.TEST_ENV_NAME }}
258258
python-version: ${{ matrix.python }}
259259

.github/workflows/conda-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ jobs:
7979

8080
build_windows:
8181
runs-on: windows-latest
82-
82+
defaults:
83+
run:
84+
shell: cmd /C CALL {0}
8385
strategy:
8486
matrix:
8587
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
@@ -97,10 +99,9 @@ jobs:
9799
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
98100
with:
99101
miniforge-version: latest
100-
use-mamba: 'true'
101-
conda-remove-defaults: 'true'
102-
activate-environment: 'build'
103-
python-version: '3.13' # no python 3.14 support by conda-build
102+
activate-environment: build
103+
channels: conda-forge
104+
python-version: ${{ matrix.python }}
104105

105106
- name: Cache conda packages
106107
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
@@ -248,7 +249,6 @@ jobs:
248249
with:
249250
miniforge-version: latest
250251
channels: conda-forge
251-
conda-remove-defaults: true
252252
activate-environment: ${{ env.TEST_ENV_NAME }}
253253
python-version: ${{ matrix.python }}
254254

0 commit comments

Comments
 (0)