Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- os: macOS-latest
isDraft: true
- os: windows-latest
python-version: 3.7
isDraft: true
# - os: ubuntu-latest
# python-version: 3.7
Expand Down Expand Up @@ -77,19 +78,23 @@ jobs:
# fecth all history so that setuptools-scm works
fetch-depth: 0

# Setup Miniconda
- name: Setup Miniconda
# Install Mambaforge with conda-forge dependencies
- name: Setup Mambaforge
uses: conda-incubator/[email protected]
with:
activate-environment: pygmt
python-version: ${{ matrix.python-version }}
channels: conda-forge
miniconda-version: "latest"
channels: conda-forge,nodefaults
channel-priority: strict
miniforge-version: latest
miniforge-variant: Mambaforge
mamba-version: "*"
use-mamba: true

# Install GMT and other required dependencies from conda-forge
- name: Install dependencies
run: |
conda install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \
mamba install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \
pandas xarray netCDF4 packaging \
${{ matrix.optional-packages }} \
codecov coverage[toml] dvc ipython make \
Expand All @@ -98,7 +103,7 @@ jobs:

# Show installed pkg information for postmortem diagnostic
- name: List installed packages
run: conda list
run: mamba list

# Download cached remote files (artifacts) from GitHub
- name: Download remote data from GitHub
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/ci_tests_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,23 @@ jobs:
# fecth all history so that setuptools-scm works
fetch-depth: 0

# Setup Miniconda
- name: Setup Miniconda
# Install Mambaforge with conda-forge dependencies
- name: Setup Mambaforge
uses: conda-incubator/[email protected]
with:
activate-environment: pygmt
python-version: ${{ matrix.python-version }}
channels: conda-forge
miniconda-version: "latest"
channels: conda-forge,nodefaults
channel-priority: strict
miniforge-version: latest
miniforge-variant: Mambaforge
mamba-version: "*"
use-mamba: true

# Install dependencies from conda-forge
- name: Install dependencies
run: |
conda install ninja cmake libblas libcblas liblapack fftw gdal geopandas \
mamba install ninja cmake libblas libcblas liblapack fftw gdal geopandas \
ghostscript libnetcdf hdf5 zlib curl pcre make dvc
pip install --pre numpy pandas xarray netCDF4 packaging \
ipython pytest-cov pytest-mpl pytest>=6.0 sphinx-gallery \
Expand All @@ -98,7 +102,7 @@ jobs:
if: runner.os != 'Windows'

- name: Install GMT dev version from conda-forge (Windows)
run: conda install -c conda-forge/label/dev gmt
run: mamba install -c conda-forge/label/dev gmt>=6.2
if: runner.os == 'Windows'

# Download cached remote files (artifacts) from GitHub
Expand Down