Skip to content

Commit c30ea76

Browse files
committed
fix warnings in windows workflows
1 parent 33ec733 commit c30ea76

2 files changed

Lines changed: 24 additions & 22 deletions

File tree

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@ jobs:
103103
fetch-depth: 0
104104
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
105105
with:
106+
miniforge-variant: Miniforge3
106107
miniforge-version: latest
107-
use-mamba: 'true'
108-
conda-remove-defaults: 'true'
109-
activate-environment: 'build'
110-
python-version: '3.13' # no python 3.14 support by conda-build
108+
auto-activate: true
109+
activate-environment: base
110+
channels: conda-forge
111+
conda-remove-defaults: true
112+
python-version: ${{ matrix.python }}
111113

112114
- name: Cache conda packages
113115
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
@@ -242,10 +244,10 @@ jobs:
242244
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
243245
with:
244246
miniforge-version: latest
245-
use-mamba: 'true'
246-
conda-remove-defaults: 'true'
247-
activate-environment: 'test'
248-
python-version: '3.13' # no python 3.14 support by conda-index
247+
channels: conda-forge
248+
conda-remove-defaults: true
249+
activate-environment: ${{ env.TEST_ENV_NAME }}
250+
python-version: ${{ matrix.python }}
249251

250252
- name: Install conda-index
251253
run: conda install conda-index
@@ -269,8 +271,7 @@ jobs:
269271
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
270272
SET PACKAGE_VERSION=%%F
271273
)
272-
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
273-
more lockfile
274+
conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
274275
275276
- name: Cache conda packages
276277
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
@@ -299,5 +300,5 @@ jobs:
299300
300301
- name: Run tests
301302
run: |
302-
conda activate -n ${{ env.TEST_ENV_NAME }}
303+
conda activate ${{ env.TEST_ENV_NAME }}
303304
pytest -v --pyargs ${{ env.MODULE_NAME }}

.github/workflows/conda-package.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@ jobs:
103103
fetch-depth: 0
104104
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
105105
with:
106+
miniforge-variant: Miniforge3
106107
miniforge-version: latest
107-
use-mamba: 'true'
108-
conda-remove-defaults: 'true'
109-
activate-environment: 'build'
110-
python-version: '3.13' # no python 3.14 support by conda-build
108+
auto-activate: true
109+
activate-environment: base
110+
channels: conda-forge
111+
conda-remove-defaults: true
112+
python-version: ${{ matrix.python }}
111113

112114
- name: Cache conda packages
113115
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
@@ -242,10 +244,10 @@ jobs:
242244
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
243245
with:
244246
miniforge-version: latest
245-
use-mamba: 'true'
246-
conda-remove-defaults: 'true'
247-
activate-environment: 'test'
248-
python-version: '3.13' # no python 3.14 support by conda-index
247+
channels: conda-forge
248+
conda-remove-defaults: true
249+
activate-environment: ${{ env.TEST_ENV_NAME }}
250+
python-version: ${{ matrix.python }}
249251

250252
- name: Install conda-index
251253
run: conda install conda-index
@@ -269,8 +271,7 @@ jobs:
269271
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
270272
SET PACKAGE_VERSION=%%F
271273
)
272-
conda create -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
273-
more lockfile
274+
conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.GITHUB_WORKSPACE }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
274275
275276
- name: Cache conda packages
276277
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
@@ -302,5 +303,5 @@ jobs:
302303
303304
- name: Run tests
304305
run: |
305-
conda activate -n ${{ env.TEST_ENV_NAME }}
306+
conda activate ${{ env.TEST_ENV_NAME }}
306307
pytest -v --pyargs ${{ env.MODULE_NAME }}

0 commit comments

Comments
 (0)