@@ -44,11 +44,11 @@ jobs:
44
44
# - os: ubuntu-latest
45
45
# python-version: 3.7
46
46
# isDraft: true
47
- # Pair Python 3.7 with NumPy 1.17 and Python 3.9 with NumPy 1.21
47
+ # Pair Python 3.7 with NumPy 1.18 and Python 3.9 with NumPy 1.21
48
48
# Only install optional packages on Python 3.9/NumPy 1.21
49
49
include :
50
50
- python-version : 3.7
51
- numpy-version : ' 1.17 '
51
+ numpy-version : ' 1.18 '
52
52
optional-packages : ' '
53
53
- python-version : 3.9
54
54
numpy-version : ' 1.21'
@@ -77,28 +77,32 @@ jobs:
77
77
# fecth all history so that setuptools-scm works
78
78
fetch-depth : 0
79
79
80
- # Setup Miniconda
81
- - name : Setup Miniconda
80
+ # Install Mambaforge with conda-forge dependencies
81
+ - name : Setup Mambaforge
82
82
uses : conda-incubator/setup-miniconda@v2.1.1
83
83
with :
84
84
activate-environment : pygmt
85
85
python-version : ${{ matrix.python-version }}
86
- channels : conda-forge
87
- miniconda-version : " latest"
86
+ channels : conda-forge,nodefaults
87
+ channel-priority : strict
88
+ miniforge-version : latest
89
+ miniforge-variant : Mambaforge
90
+ mamba-version : " *"
91
+ use-mamba : true
88
92
89
93
# Install GMT and other required dependencies from conda-forge
90
94
- name : Install dependencies
91
95
run : |
92
- conda install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \
96
+ mamba install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \
93
97
pandas xarray netCDF4 packaging \
94
98
${{ matrix.optional-packages }} \
95
- codecov coverage[toml] dvc ipython make \
99
+ coverage[toml] dvc ipython make \
96
100
pytest-cov pytest-mpl pytest>=6.0 \
97
101
sphinx-gallery
98
102
99
103
# Show installed pkg information for postmortem diagnostic
100
104
- name : List installed packages
101
- run : conda list
105
+ run : mamba list
102
106
103
107
# Download cached remote files (artifacts) from GitHub
104
108
- name : Download remote data from GitHub
@@ -144,7 +148,7 @@ jobs:
144
148
145
149
# Upload coverage to Codecov
146
150
- name : Upload coverage to Codecov
147
- uses : codecov/codecov-action@v2.0.2
151
+ uses : codecov/codecov-action@v2.1.0
148
152
with :
149
153
file : ./coverage.xml # optional
150
154
env_vars : OS,PYTHON,NUMPY
0 commit comments