Skip to content

Commit 79cd804

Browse files
committed
Use mamba to install Continuous Integration dependencies
Specifically using `mambaforge` which is a `miniconda` replacement that defaults to using the `conda-forge` channel and `mamba` instead of `conda` by default.
1 parent 63081b9 commit 79cd804

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci_tests.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
- name: Checkout
3131
uses: actions/[email protected]
3232

33-
# Setup Miniconda
3433
- name: Set up Python
3534
uses: actions/setup-python@v2
3635
with:
@@ -82,11 +81,12 @@ jobs:
8281

8382
# Setup Miniconda
8483
- name: Setup Miniconda
85-
uses: conda-incubator/setup-miniconda@v2.0.0
84+
uses: conda-incubator/setup-miniconda@2fc91a2ef82dfb50ded2d80e56f83b7039ba5955
8685
with:
8786
python-version: ${{ matrix.python-version }}
88-
channels: conda-forge
89-
miniconda-version: "latest"
87+
miniforge-variant: Mambaforge
88+
miniforge-version: latest
89+
use-mamba: true
9090

9191
# Install GMT and other required dependencies from conda-forge
9292
- name: Install GMT and required dependencies
@@ -99,12 +99,12 @@ jobs:
9999
make
100100
codecov
101101
EOF
102-
conda install --yes --file $requirements_file
102+
mamba install --yes --file $requirements_file
103103
104104
# Show installed pkg information for postmortem diagnostic
105105
- name: List installed packages
106106
shell: bash -l {0}
107-
run: conda list
107+
run: mamba list
108108

109109
# Download cached remote files (artifacts) from GitHub
110110
- name: Download remote data from GitHub

0 commit comments

Comments
 (0)