Skip to content

Commit 960f15c

Browse files
authored
move to setup-micromamba (#7878)
* transition to setup-micromamba * transition the last few ci to setup-micromamba * remove the obsolete and unused `parse_logs` script * don't specify `environment-file: false`
1 parent 9909f90 commit 960f15c

File tree

6 files changed

+28
-132
lines changed

6 files changed

+28
-132
lines changed

.github/workflows/benchmarks-last-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
fetch-depth: 0
2323

2424
- name: Set up conda environment
25-
uses: mamba-org/provision-with-micromamba@v15
25+
uses: mamba-org/setup-micromamba@v1
2626
with:
2727
environment-file: ${{env.CONDA_ENV_FILE}}
2828
environment-name: xarray-tests
29-
cache-env: true
30-
cache-env-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}-benchmark"
31-
extra-specs: |
29+
cache-environment: true
30+
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}-benchmark"
31+
create-args: >-
3232
asv
3333
3434
- name: 'Get Previous tag'

.github/workflows/benchmarks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
fetch-depth: 0
2323

2424
- name: Set up conda environment
25-
uses: mamba-org/provision-with-micromamba@v15
25+
uses: mamba-org/setup-micromamba@v1
2626
with:
2727
environment-file: ${{env.CONDA_ENV_FILE}}
2828
environment-name: xarray-tests
29-
cache-env: true
30-
cache-env-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}-benchmark"
31-
extra-specs: |
29+
cache-environment: true
30+
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}-benchmark"
31+
create-args: >-
3232
asv
3333
3434

.github/workflows/ci-additional.yaml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ jobs:
5353
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
5454
5555
- name: Setup micromamba
56-
uses: mamba-org/provision-with-micromamba@v15
56+
uses: mamba-org/setup-micromamba@v1
5757
with:
5858
environment-file: ${{env.CONDA_ENV_FILE}}
5959
environment-name: xarray-tests
60-
extra-specs: |
60+
create-args: >-
6161
python=${{env.PYTHON_VERSION}}
6262
conda
63-
cache-env: true
64-
cache-env-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
63+
cache-environment: true
64+
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
6565

6666
- name: Install xarray
6767
run: |
@@ -100,15 +100,15 @@ jobs:
100100
run: |
101101
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
102102
- name: Setup micromamba
103-
uses: mamba-org/provision-with-micromamba@v15
103+
uses: mamba-org/setup-micromamba@v1
104104
with:
105105
environment-file: ${{env.CONDA_ENV_FILE}}
106106
environment-name: xarray-tests
107-
extra-specs: |
107+
create-args: >-
108108
python=${{env.PYTHON_VERSION}}
109109
conda
110-
cache-env: true
111-
cache-env-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
110+
cache-environment: true
111+
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
112112
- name: Install xarray
113113
run: |
114114
python -m pip install --no-deps -e .
@@ -154,15 +154,15 @@ jobs:
154154
run: |
155155
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
156156
- name: Setup micromamba
157-
uses: mamba-org/provision-with-micromamba@v15
157+
uses: mamba-org/setup-micromamba@v1
158158
with:
159159
environment-file: ${{env.CONDA_ENV_FILE}}
160160
environment-name: xarray-tests
161-
extra-specs: |
161+
create-args: >-
162162
python=${{env.PYTHON_VERSION}}
163163
conda
164-
cache-env: true
165-
cache-env-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
164+
cache-environment: true
165+
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
166166
- name: Install xarray
167167
run: |
168168
python -m pip install --no-deps -e .
@@ -210,16 +210,14 @@ jobs:
210210
fetch-depth: 0 # Fetch all history for all branches and tags.
211211

212212
- name: Setup micromamba
213-
uses: mamba-org/provision-with-micromamba@v15
213+
uses: mamba-org/setup-micromamba@v1
214214
with:
215215
environment-name: xarray-tests
216-
environment-file: false
217-
extra-specs: |
216+
create-args: >-
218217
python=3.10
219218
pyyaml
220219
conda
221220
python-dateutil
222-
channels: conda-forge
223221
224222
- name: minimum versions policy
225223
run: |

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ jobs:
9292
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
9393
9494
- name: Setup micromamba
95-
uses: mamba-org/provision-with-micromamba@v15
95+
uses: mamba-org/setup-micromamba@v1
9696
with:
9797
environment-file: ${{ env.CONDA_ENV_FILE }}
9898
environment-name: xarray-tests
99-
cache-env: true
100-
cache-env-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
101-
extra-specs: |
99+
cache-environment: true
100+
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
101+
create-args: >-
102102
python=${{matrix.python-version}}
103103
conda
104104

.github/workflows/parse_logs.py

Lines changed: 0 additions & 102 deletions
This file was deleted.

.github/workflows/upstream-dev-ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ jobs:
5656
with:
5757
fetch-depth: 0 # Fetch all history for all branches and tags.
5858
- name: Set up conda environment
59-
uses: mamba-org/provision-with-micromamba@v15
59+
uses: mamba-org/setup-micromamba@v1
6060
with:
6161
environment-file: ci/requirements/environment.yml
6262
environment-name: xarray-tests
63-
extra-specs: |
63+
create-args: >-
6464
python=${{ matrix.python-version }}
6565
pytest-reportlog
6666
conda

0 commit comments

Comments
 (0)