Skip to content

Commit 3feb29b

Browse files
committed
Switch to micromamba in build workflow
1 parent 7250895 commit 3feb29b

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/build_workflow.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,22 @@ jobs:
5353

5454
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
5555
name: Set up Conda Environment
56-
uses: conda-incubator/setup-miniconda@v3
56+
uses: mamba-org/setup-micromamba@v2
5757
with:
58-
activate-environment: "mpas_analysis_ci"
59-
miniforge-version: latest
60-
channels: conda-forge
61-
channel-priority: strict
62-
auto-update-conda: false
63-
python-version: ${{ matrix.python-version }}
58+
environment-name: mpas_analysis_dev
59+
init-shell: bash
60+
condarc: |
61+
channel_priority: strict
62+
channels:
63+
- conda-forge
64+
create-args: >-
65+
python=${{ matrix.python-version }}
6466
6567
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
6668
name: Install mpas_analysis
6769
run: |
68-
conda create -n mpas_analysis_dev --file dev-spec.txt \
69-
python=${{ matrix.python-version }}
70-
conda activate mpas_analysis_dev
70+
conda install -y --file dev-spec.txt \
71+
python=${{ matrix.python-version }}
7172
python -m pip install --no-deps --no-build-isolation -vv -e .
7273
7374
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
@@ -76,7 +77,6 @@ jobs:
7677
CHECK_IMAGES: False
7778
run: |
7879
set -e
79-
conda activate mpas_analysis_dev
8080
pip check
8181
pytest --pyargs mpas_analysis
8282
mpas_analysis --help
@@ -85,7 +85,6 @@ jobs:
8585
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
8686
name: Build Sphinx Docs
8787
run: |
88-
conda activate mpas_analysis_dev
8988
# sphinx-multiversion expects at least a "main" branch
9089
git branch main || echo "branch main already exists."
9190
cd docs

0 commit comments

Comments
 (0)