@@ -106,11 +106,14 @@ jobs:
106
106
fail-fast : false
107
107
matrix :
108
108
python-version : [3.7]
109
- os : [ubuntu-latest ]
109
+ os : [ubuntu-20.04, macOS-10.15, windows-2019 ]
110
110
env :
111
111
# LD_LIBRARY_PATH: ${{ github.workspace }}/gmt/lib:$LD_LIBRARY_PATH
112
112
GMT_INSTALL_DIR : ${{ github.workspace }}/gmt-install-dir
113
113
GMT_LIBRARY_PATH : ${{ github.workspace }}/gmt-install-dir/lib
114
+ defaults :
115
+ run :
116
+ shell : bash -l {0}
114
117
115
118
steps :
116
119
# Checkout current git repository
@@ -130,12 +133,10 @@ jobs:
130
133
131
134
# Install build dependencies from conda-forge
132
135
- name : Install build dependencies
133
- shell : bash -l {0}
134
136
run : conda install cmake libblas libcblas liblapack fftw gdal ghostscript libnetcdf hdf5 zlib curl pcre gshhg-gmt dcw-gmt pytest pytest-cov pytest-mpl
135
137
136
138
# Install GMT master branch
137
139
- name : Install GMT from master
138
- shell : bash -l {0}
139
140
run : curl https://raw.githubusercontent.com/GenericMappingTools/gmt/master/ci/build-gmt-master.sh | bash
140
141
141
142
# Cache the ${HOME}/.gmt directory, for docs and testing
@@ -151,12 +152,11 @@ jobs:
151
152
152
153
# Workaround for the timeouts of 'gmt which' on Linux and Windows
153
154
- name : Download remote data using wget (Linux & Windows)
154
- shell : bash -l {0}
155
155
run : |
156
156
if [ "$RUNNER_OS" == "Windows" ]; then choco install wget; fi # install wget on Windows
157
157
mkdir ~/.gmt ~/.gmt/cache ~/.gmt/server
158
158
wget --no-check-certificate https://oceania.generic-mapping-tools.org/gmt_hash_server.txt -P ~/.gmt/server/
159
- for data in earth_relief_60m .grd earth_relief_30m.grd earth_relief_10m.grd; do
159
+ for data in earth_relief_01d .grd earth_relief_30m.grd earth_relief_10m.grd; do
160
160
wget --no-check-certificate https://oceania.generic-mapping-tools.org/${data} -P ~/.gmt/server/
161
161
done
162
162
for data in ridge.txt Table_5_11.txt tut_bathy.nc tut_quakes.ngdc tut_ship.xyz usgs_quakes_22.txt; do
@@ -166,18 +166,15 @@ jobs:
166
166
167
167
# Download remote files, if not already cached
168
168
- name : Download remote data (macOS)
169
- shell : bash -l {0}
170
169
run : gmt which -Gu @earth_relief_60m @earth_relief_30m @earth_relief_10m @ridge.txt @Table_5_11.txt @tut_bathy.nc @tut_quakes.ngdc @tut_ship.xyz @usgs_quakes_22.txt
171
170
if : steps.cache2.outputs.cache-hit != 'true' && runner.os == 'macOS'
172
171
173
172
# Install the package that we want to test
174
173
- name : Install the package
175
- shell : bash -l {0}
176
174
run : |
177
175
python setup.py sdist --formats=zip
178
176
pip install dist/*
179
177
180
178
# Run the tests
181
179
- name : Test with pytest
182
- shell : bash -l {0}
183
180
run : make test PYTEST_EXTRA="-r P"
0 commit comments