Skip to content

Commit 4588e58

Browse files
authored
use mamba-org/setup-micromamba (#77)
* use mamba-org/setup-micromamba * fix env creation from create-args * use channels * fix python version
1 parent 30127fc commit 4588e58

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/ci-additional.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@ jobs:
3737
PY=${PY//./}
3838
echo "CONDA_ENV_FILE=ci/requirements/py${PY}-${{ matrix.env }}.yml" >> $GITHUB_ENV
3939
- name: Create conda environment
40-
uses: mamba-org/provision-with-micromamba@main
40+
uses: mamba-org/setup-micromamba@v1
4141
with:
42-
cache-downloads: true
43-
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
44-
micromamba-version: 'latest'
4542
environment-file: ${{ env.CONDA_ENV_FILE }}
46-
extra-specs: |
43+
cache-downloads: true
44+
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}"
45+
create-args: >-
4746
python=${{ matrix.python-version }}
4847
- name: Install mplotutils
4948
run: |
@@ -83,17 +82,19 @@ jobs:
8382
fetch-depth: 0 # Fetch all history for all branches and tags.
8483

8584
- name: Create conda environment
86-
uses: mamba-org/provision-with-micromamba@v15
85+
uses: mamba-org/setup-micromamba@v1
8786
with:
8887
environment-name: min-version-policy
89-
environment-file: false
9088
micromamba-version: 'latest'
91-
extra-specs: |
92-
python="3.10"
89+
create-args: >-
90+
python=3.10
9391
pyyaml
9492
conda
9593
python-dateutil
96-
channels: conda-forge
94+
condarc: |
95+
channels:
96+
- conda-forge
97+
- nodefaults
9798
9899
- name: minimum versions policy
99100
run: |

.github/workflows/ci.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,12 @@ jobs:
3333
echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV
3434
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
3535
- name: Create conda environment
36-
uses: mamba-org/provision-with-micromamba@v15
36+
uses: mamba-org/setup-micromamba@v1
3737
with:
38-
cache-downloads: true
39-
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
40-
micromamba-version: 'latest'
4138
environment-file: ci/requirements/environment.yml
42-
extra-specs: |
39+
cache-downloads: true
40+
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}"
41+
create-args: >-
4342
python=${{ matrix.python-version }}
4443
- name: Install mplotutils
4544
run: |

0 commit comments

Comments
 (0)