Skip to content

Commit 6dffb17

Browse files
authored
Use micromamba for optional-deps CI (#389)
* Use micromamba for optional-deps CI * Fix
1 parent 583c416 commit 6dffb17

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,24 +99,25 @@ jobs:
9999
no-optional-deps:
100100
name: no-optional-deps
101101
runs-on: ubuntu-latest
102+
defaults:
103+
run:
104+
shell: bash -l {0}
102105
steps:
103106
- uses: actions/checkout@v3
104107
with:
105108
# need to fetch all tags to get a correct version
106109
fetch-depth: 0 # fetch all branches and tags
107-
- uses: conda-incubator/setup-miniconda@v2
108-
with:
109-
channels: conda-forge
110-
mamba-version: "*"
111-
activate-environment: cf_xarray_test
112-
auto-update-conda: false
113-
python-version: ${{ matrix.python-version }}
114110
- name: Set up conda environment
115-
shell: bash -l {0}
111+
uses: mamba-org/provision-with-micromamba@v14
112+
with:
113+
environment-file: ci/environment-no-optional-deps.yml
114+
environment-name: cf_xarray_test
115+
cache-env: true
116+
extra-specs: |
117+
python="${{ matrix.python-version }}"
118+
- name: Install cf_xarray
116119
run: |
117-
mamba env update -f ci/environment-no-optional-deps.yml
118-
python -m pip install -e .
119-
conda list
120+
python -m pip install --no-deps -e .
120121
- name: Run Tests
121122
shell: bash -l {0}
122123
run: |

0 commit comments

Comments
 (0)