Skip to content

Commit

Permalink
switch to setup-micromamba (#185)
Browse files Browse the repository at this point in the history
* Update ci.yaml

* Update linting.yaml

* Update whats_new.rst

* Update linting.yaml
  • Loading branch information
larsbuntemeyer authored Oct 26, 2023
1 parent c13fa0c commit 88568fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ jobs:
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
- name: Create conda environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
micromamba-version: 'latest'
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}"
environment-file: ci/requirements/environment.yml
extra-specs: |
create-args: >-
python=${{ matrix.python-version }}
- name: Install py-cordex
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@ jobs:
fetch-depth: 0 # Fetch all history for all branches and tags.

- name: Create conda environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-name: py-cordex-linting
micromamba-version: 'latest'
cache-downloads: true
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}"
environment-file: ci/requirements/environment.yml
extra-specs: |
create-args: >-
python=${{ matrix.python-version }}
black
isort
flake8
channels: conda-forge
- name: Install py-cordex
run: |
Expand Down
1 change: 1 addition & 0 deletions docs/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Internal Changes
~~~~~~~~~~~~~~~~

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

Bugfixes
~~~~~~~~
Expand Down

0 comments on commit 88568fe

Please sign in to comment.