Skip to content

Commit 4eccd27

Browse files
committed
Switch docs workflow to micromamba
1 parent 3feb29b commit 4eccd27

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/docs_workflow.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,35 @@ jobs:
3737

3838
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
3939
name: Set up Conda Environment
40-
uses: conda-incubator/setup-miniconda@v3
40+
uses: mamba-org/setup-micromamba@v2
4141
with:
42-
activate-environment: "mpas_analysis_ci"
43-
miniforge-version: latest
44-
channels: conda-forge
45-
channel-priority: strict
46-
auto-update-conda: false
47-
python-version: ${{ env.PYTHON_VERSION }}
42+
environment-name: mpas_analysis_dev
43+
init-shell: bash
44+
condarc: |
45+
channel_priority: strict
46+
channels:
47+
- conda-forge
48+
create-args: >-
49+
python=${{ env.PYTHON_VERSION }}
4850
4951
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
5052
name: Install mpas_analysis
5153
run: |
5254
git config --global url."https://github.com/".insteadOf "git@github.com:"
53-
conda create -n mpas_analysis_dev --file dev-spec.txt \
55+
conda install -y --file dev-spec.txt \
5456
python=${{ env.PYTHON_VERSION }}
55-
conda activate mpas_analysis_dev
5657
python -m pip install -vv --no-deps --no-build-isolation -e .
5758
5859
- name: Build Sphinx Docs
5960
run: |
6061
set -e
61-
conda activate mpas_analysis_dev
6262
pip check
6363
mpas_analysis sync diags --help
6464
cd docs
6565
sphinx-multiversion . _build/html
6666
- name: Copy Docs and Commit
6767
run: |
6868
set -e
69-
conda activate mpas_analysis_dev
7069
pip check
7170
mpas_analysis sync diags --help
7271
cd docs

0 commit comments

Comments
 (0)