Skip to content

Commit f991e3f

Browse files
authored
Move to micromamba (#76)
Closes #75
1 parent b097bf0 commit f991e3f

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/ci.yaml

+14-11
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,23 @@ jobs:
3535
echo "CONDA_ENV_FILE=ci/environment.yml" >> $GITHUB_ENV
3636
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
3737
38-
- uses: conda-incubator/setup-miniconda@v2
38+
- name: Setup micromamba
39+
uses: mamba-org/provision-with-micromamba@v15
3940
with:
40-
channels: conda-forge
41-
channel-priority: strict
42-
mamba-version: "*"
43-
activate-environment: npg-tests
44-
auto-update-conda: false
45-
python-version: ${{ matrix.python-version }}
46-
use-only-tar-bz2: true
41+
environment-file: ${{ env.CONDA_ENV_FILE }}
42+
environment-name: xarray-tests
43+
cache-env: true
44+
cache-env-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
45+
extra-specs: |
46+
python=${{matrix.python-version}}
47+
conda
4748
48-
- name: Install conda dependencies
49+
# We only want to install this on one run, because otherwise we'll have
50+
# duplicate annotations.
51+
- name: Install error reporter
52+
if: ${{ matrix.os }} == 'ubuntu-latest' and ${{ matrix.python-version }} == '3.10'
4953
run: |
50-
mamba env update -f $CONDA_ENV_FILE
51-
if: steps.cache-env.outputs.cache-hit != 'true'
54+
python -m pip install pytest-github-actions-annotate-failures
5255
5356
- name: Set up conda environment
5457
shell: bash -l {0}

0 commit comments

Comments
 (0)