Skip to content

Commit 256f11c

Browse files
authored
Switch to setup-micromamba (#476)
* Switch to setup-micromamba * Update .github/workflows/ci.yaml * fix? * last one!
1 parent 03583e4 commit 256f11c

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ jobs:
3636
run: |
3737
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
3838
- name: Set up conda environment
39-
uses: mamba-org/provision-with-micromamba@v15
39+
uses: mamba-org/setup-micromamba@v1
4040
with:
4141
environment-file: ci/environment.yml
4242
environment-name: cf_xarray_test
43-
cache-env: true
44-
extra-specs: |
45-
python="${{ matrix.python-version }}"
43+
cache-environment: true
44+
create-args: >-
45+
python=${{ matrix.python-version }}
4646
- name: Install cf_xarray
4747
run: |
4848
python -m pip install --no-deps -e .
@@ -70,11 +70,11 @@ jobs:
7070
# need to fetch all tags to get a correct version
7171
fetch-depth: 0 # fetch all branches and tags
7272
- name: Set up conda environment
73-
uses: mamba-org/provision-with-micromamba@v15
73+
uses: mamba-org/setup-micromamba@v1
7474
with:
7575
environment-file: ci/environment-no-optional-deps.yml
7676
environment-name: cf_xarray_test
77-
cache-env: true
77+
cache-environment: true
7878
- name: Install cf_xarray
7979
run: |
8080
python -m pip install --no-deps -e .
@@ -97,13 +97,13 @@ jobs:
9797
with:
9898
fetch-depth: 0 # Fetch all history for all branches and tags.
9999
- name: Set up conda environment
100-
uses: mamba-org/provision-with-micromamba@v15
100+
uses: mamba-org/setup-micromamba@v1
101101
with:
102102
environment-file: ci/environment.yml
103103
environment-name: cf_xarray_test
104-
cache-env: true
105-
extra-specs: |
106-
python="${{ matrix.python-version }}"
104+
cache-environment: true
105+
create-args: >-
106+
python=${{ matrix.python-version }}
107107
- name: Install cf_xarray
108108
run: |
109109
python -m pip install --no-deps -e .

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
upstream-dev:
2323
name: upstream-dev
2424
runs-on: ubuntu-latest
25-
if: ${{ contains( github.event.pull_request.labels.*.name, 'test-upstream') && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
25+
if: ${{ (contains( github.event.pull_request.labels.*.name, 'test-upstream') && github.event_name == 'pull_request') || github.event_name == 'workflow_dispatch' }}
2626
defaults:
2727
run:
2828
shell: bash -l {0}
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.11"]
32+
python-version: ["3.12"]
3333
steps:
3434
- uses: actions/checkout@v4
3535
with:
@@ -38,13 +38,13 @@ jobs:
3838
run: |
3939
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
4040
- name: Set up conda environment
41-
uses: mamba-org/provision-with-micromamba@v15
41+
uses: mamba-org/setup-micromamba@v1
4242
with:
4343
environment-file: ci/upstream-dev-env.yml
4444
environment-name: cf_xarray_test
4545
cache-env: False
46-
extra-specs: |
47-
python="${{ matrix.python-version }}"
46+
create-args: >-
47+
python=${{ matrix.python-version }}
4848
- name: Install cf_xarray
4949
run: |
5050
python -m pip install --no-deps -e .

0 commit comments

Comments
 (0)