@@ -87,14 +87,16 @@ jobs:
8787
8888 - if : ${{ steps.skip_check.outputs.should_skip != 'true' }}
8989 name : Create Build Environment
90- uses : conda-incubator /setup-miniconda@v3
90+ uses : mamba-org /setup-micromamba@v2
9191 with :
92- activate-environment : " build"
93- miniforge-version : latest
94- channels : conda-forge
95- channel-priority : strict
96- auto-update-conda : true
97- python-version : 3.12
92+ environment-name : mpas_tools_dev
93+ init-shell : bash
94+ condarc : |
95+ channel_priority: strict
96+ channels:
97+ - conda-forge
98+ create-args : >-
99+ python=${{ matrix.python-version }}
98100
99101 - if : ${{ steps.skip_check.outputs.should_skip != 'true' }}
100102 name : Finalize Build Environment
@@ -105,14 +107,13 @@ jobs:
105107 - if : ${{ steps.skip_check.outputs.should_skip != 'true' }}
106108 name : Install mpas_tools
107109 run : |
108- conda create -y -n mpas_tools_dev -c ${CONDA_PREFIX}/conda-bld/ \
109- -c conda-forge mpas_tools python=${{ matrix.python-version }} \
110- sphinx sphinx-multiversion mock sphinx_rtd_theme
110+ conda install -y -c ${CONDA_PREFIX}/conda-bld/ \
111+ mpas_tools python=${{ matrix.python-version }} \
112+ sphinx sphinx-multiversion mock sphinx_rtd_theme
111113
112114 - if : ${{ steps.skip_check.outputs.should_skip != 'true' }}
113115 name : Build Sphinx Docs
114116 run : |
115- conda activate mpas_tools_dev
116117 # sphinx-multiversion expects at least a "master" branch
117118 git branch master || echo "branch master already exists."
118119 cd conda_package/docs
0 commit comments