Skip to content

Commit 88568fe

Browse files
switch to setup-micromamba (#185)
* Update ci.yaml * Update linting.yaml * Update whats_new.rst * Update linting.yaml
1 parent c13fa0c commit 88568fe

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ jobs:
3636
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
3737
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
3838
- name: Create conda environment
39-
uses: mamba-org/provision-with-micromamba@main
39+
uses: mamba-org/setup-micromamba@v1
4040
with:
4141
cache-downloads: true
42-
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
43-
micromamba-version: 'latest'
42+
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}"
4443
environment-file: ci/requirements/environment.yml
45-
extra-specs: |
44+
create-args: >-
4645
python=${{ matrix.python-version }}
4746
- name: Install py-cordex
4847
run: |

.github/workflows/linting.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,16 @@ jobs:
3030
fetch-depth: 0 # Fetch all history for all branches and tags.
3131

3232
- name: Create conda environment
33-
uses: mamba-org/provision-with-micromamba@main
33+
uses: mamba-org/setup-micromamba@v1
3434
with:
35-
environment-name: py-cordex-linting
36-
micromamba-version: 'latest'
35+
cache-downloads: true
36+
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}"
3737
environment-file: ci/requirements/environment.yml
38-
extra-specs: |
38+
create-args: >-
3939
python=${{ matrix.python-version }}
4040
black
4141
isort
4242
flake8
43-
channels: conda-forge
4443
4544
- name: Install py-cordex
4645
run: |

docs/whats_new.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Internal Changes
1010
~~~~~~~~~~~~~~~~
1111

1212
- Added CI for python 3.12 (:pull:`184`).
13+
- Switch CI to `setup-micromamba` (:pull:`185`).
1314

1415
Bugfixes
1516
~~~~~~~~

0 commit comments

Comments
 (0)