@@ -25,34 +25,33 @@ jobs:
2525
2626 - if : ${{ steps.skip_check.outputs.should_skip != 'true' }}
2727 name : Set up Conda Environment
28- uses : conda-incubator /setup-miniconda@v3
28+ uses : mamba-org /setup-micromamba@v2
2929 with :
30- activate-environment : " mache_ci"
31- miniforge-version : latest
32- channels : conda-forge
33- channel-priority : strict
34- auto-update-conda : true
35- python-version : ${{ env.PYTHON_VERSION }}
30+ environment-name : mache_dev
31+ init-shell : bash
32+ condarc : |
33+ channel_priority: strict
34+ channels:
35+ - conda-forge
36+ create-args : >-
37+ python=${{ env.PYTHON_VERSION }}
3638
3739 - if : ${{ steps.skip_check.outputs.should_skip != 'true' }}
3840 name : Install mache
3941 run : |
4042 git config --global url."https://github.com/".insteadOf "git@github.com:"
41- conda create -n mache_dev --file spec-file.txt \
43+ conda install -y --file spec-file.txt \
4244 python=${{ env.PYTHON_VERSION }}
43- conda activate mache_dev
4445 python -m pip install -vv --no-deps --no-build-isolation -e .
4546
4647 - name : Build Sphinx Docs
4748 run : |
4849 set -e
49- conda activate mache_dev
5050 cd docs
5151 sphinx-multiversion . _build/html
5252 - name : Copy Docs and Commit
5353 run : |
5454 set -e
55- conda activate mache_dev
5655 cd docs
5756 # gh-pages branch must already exist
5857 git clone https://github.com/E3SM-Project/mache.git --branch gh-pages --single-branch gh-pages
0 commit comments