Skip to content

Commit

Permalink
CI: Use mamba-org/provision-with-micromamba to setup micromamba
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Mar 17, 2023
1 parent 5fd85dd commit f7e9764
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,32 +73,32 @@ jobs:
# fetch all history so that setuptools-scm works
fetch-depth: 0

# Install Mambaforge with conda-forge dependencies
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2.2.0
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
with:
activate-environment: pygmt
python-version: ${{ matrix.python-version }}
environment-file: false
environment-name: pygmt
channels: conda-forge,nodefaults
channel-priority: strict
miniforge-version: latest
miniforge-variant: Mambaforge
mamba-version: "*"
run-post: false
use-mamba: true

# Install GMT and other required dependencies from conda-forge
- name: Install dependencies
run: |
mamba install gmt=6.4.0 numpy=${{ matrix.numpy-version }} \
pandas xarray netCDF4 packaging \
${{ matrix.optional-packages }} \
build dvc make 'pytest>=6.0' \
pytest-cov pytest-doctestplus pytest-mpl sphinx-gallery
extra-specs: |
gmt=6.4.0
numpy=${{ matrix.numpy-version }}
pandas
xarray
netCDF4
packaging
${{ matrix.optional-packages }}
build
dvc
make
pytest>=6.0
pytest-cov
pytest-doctestplus
pytest-mpl
sphinx-gallery
# Show installed pkg information for postmortem diagnostic
- name: List installed packages
run: mamba list
run: micromamba list

# Download cached remote files (artifacts) from GitHub
- name: Download remote data from GitHub
Expand Down

0 comments on commit f7e9764

Please sign in to comment.