Skip to content

Commit 334b3ed

Browse files
Fix for windows step of workflow
1 parent a90d6a8 commit 334b3ed

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.github/workflows/conda-package.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124

125125
strategy:
126126
matrix:
127-
python: ['3.9', '3.10']
127+
python: ['3.9', '3.10', '3.11', '3.12']
128128
env:
129129
conda-bld: C:\Miniconda\conda-bld\win-64\
130130
steps:
@@ -133,10 +133,14 @@ jobs:
133133
fetch-depth: 0
134134
- uses: conda-incubator/setup-miniconda@v3
135135
with:
136-
auto-activate-base: true
136+
miniforge-version: latest
137137
conda-build-version: "*"
138-
activate-environment: true
138+
activate-environment: build
139139
python-version: ${{ matrix.python }}
140+
channels: conda-forge,nodefaults
141+
142+
- name: Remove defaults channel
143+
run: conda config --remove channels defaults
140144

141145
- name: Cache conda packages
142146
uses: actions/cache@v4
@@ -165,7 +169,7 @@ jobs:
165169
shell: cmd /C CALL {0}
166170
strategy:
167171
matrix:
168-
python: ['3.9', '3.10']
172+
python: ['3.9', '3.10', '3.11', '3.12']
169173
experimental: [false]
170174
runner: [windows-2019]
171175
continue-on-error: ${{ matrix.experimental }}
@@ -180,18 +184,27 @@ jobs:
180184
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
181185
- uses: conda-incubator/setup-miniconda@v3
182186
with:
183-
auto-update-conda: true
184-
conda-build-version: '*'
185-
miniconda-version: 'latest'
186-
activate-environment: mkl_fft_test
187+
miniforge-version: latest
188+
activate-environment: build
187189
python-version: ${{ matrix.python }}
190+
channels: conda-forge,nodefaults
191+
192+
- name: Remove defaults channel
193+
run: conda config --remove channels defaults
194+
188195
- name: Create conda channel with the artifact bit
189196
shell: cmd /C CALL {0}
190197
run: |
191198
echo ${{ env.workdir }}
199+
mkdir ${{ env.workdir }}\channel\
192200
mkdir ${{ env.workdir }}\channel\win-64
193201
move ${{ env.PACKAGE_NAME }}-*.tar.bz2 ${{ env.workdir }}\channel\win-64
194202
dir ${{ env.workdir }}\channel\win-64
203+
204+
- name: Install conda index
205+
shell: cmd /C CALL {0}
206+
run: conda install conda-index
207+
195208
- name: Index the channel
196209
shell: cmd /C CALL {0}
197210
run: conda index ${{ env.workdir }}\channel

0 commit comments

Comments
 (0)