File tree 1 file changed +14
-11
lines changed
1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,23 @@ jobs:
35
35
echo "CONDA_ENV_FILE=ci/environment.yml" >> $GITHUB_ENV
36
36
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
37
37
38
- - uses : conda-incubator/setup-miniconda@v2
38
+ - name : Setup micromamba
39
+ uses : mamba-org/provision-with-micromamba@v15
39
40
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
47
48
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'
49
53
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
52
55
53
56
- name : Set up conda environment
54
57
shell : bash -l {0}
You can’t perform that action at this time.
0 commit comments