Skip to content

Commit 7050a8f

Browse files
committed
Remove conda-index from test env
1 parent 12a9f6f commit 7050a8f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/conda-package.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
channels: conda-forge
139139
conda-remove-defaults: 'true'
140140
python-version: ${{ env.CONDA_BUILD_INDEX_ENV_PY_VER}}
141-
activate-environment: 'index'
141+
activate-environment: ${{ env.TEST_ENV_NAME }}
142142

143143
- name: Install conda-index
144144
run: mamba install conda-index=${{ env.CONDA_INDEX_VERSION }}
@@ -159,10 +159,13 @@ jobs:
159159
echo PACKAGE_VERSION=${PACKAGE_VERSION}
160160
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
161161
162+
# conda-index does not support python 3.13
163+
- name: Remove conda-index
164+
run: mamba remove conda-index
165+
162166
- name: Install dpnp
163167
run: |
164-
mamba create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} ${{ env.TEST_CHANNELS }}
165-
conda activate ${{ env.TEST_ENV_NAME }}
168+
mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} ${{ env.TEST_CHANNELS }}
166169
env:
167170
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'
168171
MAMBA_NO_LOW_SPEED_LIMIT: 1
@@ -248,7 +251,7 @@ jobs:
248251
channels: conda-forge
249252
conda-remove-defaults: 'true'
250253
python-version: ${{ env.CONDA_BUILD_INDEX_ENV_PY_VER}}
251-
activate-environment: 'index'
254+
activate-environment: ${{ env.TEST_ENV_NAME }}
252255

253256
- name: Store conda paths as envs
254257
run: |
@@ -282,11 +285,14 @@ jobs:
282285
echo PACKAGE_VERSION: %PACKAGE_VERSION%
283286
(echo PACKAGE_VERSION=%PACKAGE_VERSION%) >> %GITHUB_ENV%
284287
288+
# conda-index does not support python 3.13
289+
- name: Remove conda-index
290+
run: mamba remove conda-index
291+
285292
- name: Install dpnp
286293
run: |
287294
@echo on
288-
mamba create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} ${{ env.TEST_CHANNELS }}
289-
conda activate ${{ env.TEST_ENV_NAME }}
295+
mamba install ${{ env.PACKAGE_NAME }}=${{ env.PACKAGE_VERSION }} pytest python=${{ matrix.python }} ${{ env.TEST_CHANNELS }}
290296
env:
291297
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'
292298
MAMBA_NO_LOW_SPEED_LIMIT: 1

0 commit comments

Comments
 (0)