@@ -137,15 +137,14 @@ jobs:
137
137
steps :
138
138
# Checkout current git repository
139
139
- name : Checkout
140
-
141
-
142
- # Workaround for versioneer, see https://github.com/warner/python-versioneer/issues/206
143
- - name : Fetch all history for all tags and branches
144
- run : git fetch --prune --unshallow
140
+
141
+ with :
142
+ # fecth all history so that versioneer works
143
+ fetch-depth : 0
145
144
146
145
# Setup Miniconda
147
146
- name : Setup Miniconda
148
- uses : goanpeca/setup-miniconda@v1.3.1
147
+ uses : goanpeca/setup-miniconda@v1.6.0
149
148
with :
150
149
python-version : ${{ matrix.python-version }}
151
150
channels : conda-forge
@@ -166,26 +165,28 @@ jobs:
166
165
path : |
167
166
~/.gmt/cache
168
167
~/.gmt/server
169
- key : cache2-gmt-${{ github.ref }}-${{ runner.os }}-20200629
170
- restore-keys : cache2-gmt-refs/heads/master-
168
+ key : cache2-gmt-${{ runner.os }}-${{ github.ref }}-20200711
169
+ restore-keys : cache2-gmt-${{ runner.os }}- refs/heads/master-
171
170
172
171
# Workaround for the timeouts of 'gmt which' on Linux and Windows
173
172
- name : Download remote data using wget (Linux & Windows)
174
173
run : |
175
174
if [ "$RUNNER_OS" == "Windows" ]; then choco install wget; fi # install wget on Windows
176
- mkdir ~/.gmt ~/.gmt/cache ~/.gmt/server
175
+ mkdir -p ~/.gmt ~/.gmt/cache ~/.gmt/server/earth/earth_relief/
177
176
wget --no-check-certificate https://oceania.generic-mapping-tools.org/gmt_hash_server.txt -P ~/.gmt/server/
178
- for data in earth_relief_01d .grd earth_relief_30m .grd earth_relief_10m .grd; do
179
- wget --no-check-certificate https://oceania.generic-mapping-tools.org/${data} -P ~/.gmt/server/
177
+ for data in earth_relief_01d_p .grd earth_relief_01d_g .grd earth_relief_30m_p.grd earth_relief_30m_g.grd earth_relief_10m_p.grd earth_relief_10m_g .grd; do
178
+ wget --no-check-certificate https://oceania.generic-mapping-tools.org/server/earth/earth_relief/ ${data} -P ~/.gmt/server/earth/earth_relief /
180
179
done
181
- for data in ridge.txt Table_5_11.txt tut_bathy.nc tut_quakes.ngdc tut_ship.xyz usgs_quakes_22.txt; do
180
+ for data in ridge.txt Table_5_11.txt test.dat.nc tut_bathy.nc tut_quakes.ngdc tut_ship.xyz usgs_quakes_22.txt; do
182
181
wget --no-check-certificate https://oceania.generic-mapping-tools.org/cache/${data} -P ~/.gmt/cache/
183
182
done
184
183
if : steps.cache2.outputs.cache-hit != 'true' && runner.os != 'macOS'
185
184
186
185
# Download remote files, if not already cached
187
186
- name : Download remote data (macOS)
188
- run : $GMT_INSTALL_DIR/bin/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
187
+ run : |
188
+ gmt which -Ga @earth_relief_10m_p @earth_relief_10m_g @earth_relief_30m_p @earth_relief_30m_g @earth_relief_01d_p @earth_relief_01d_g
189
+ gmt which -Ga @ridge.txt @Table_5_11.txt @test.dat.nc @tut_bathy.nc @tut_quakes.ngdc @tut_ship.xyz @usgs_quakes_22.txt
189
190
if : steps.cache2.outputs.cache-hit != 'true' && runner.os == 'macOS'
190
191
191
192
# Install the package that we want to test
0 commit comments