Skip to content

Commit 12f5b90

Browse files
committed
Update cache key to 20200712 and use GMT 6.1.0 specific dataset names
1 parent 1f1d6ae commit 12f5b90

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/ci_tests.yaml

+14-13
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,14 @@ jobs:
137137
steps:
138138
# Checkout current git repository
139139
- name: Checkout
140-
uses: actions/[email protected]
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+
uses: actions/[email protected]
141+
with:
142+
# fecth all history so that versioneer works
143+
fetch-depth: 0
145144

146145
# Setup Miniconda
147146
- name: Setup Miniconda
148-
uses: goanpeca/setup-miniconda@v1.3.1
147+
uses: goanpeca/setup-miniconda@v1.6.0
149148
with:
150149
python-version: ${{ matrix.python-version }}
151150
channels: conda-forge
@@ -166,26 +165,28 @@ jobs:
166165
path: |
167166
~/.gmt/cache
168167
~/.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-
171170

172171
# Workaround for the timeouts of 'gmt which' on Linux and Windows
173172
- name: Download remote data using wget (Linux & Windows)
174173
run: |
175174
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/
177176
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/
180179
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
182181
wget --no-check-certificate https://oceania.generic-mapping-tools.org/cache/${data} -P ~/.gmt/cache/
183182
done
184183
if: steps.cache2.outputs.cache-hit != 'true' && runner.os != 'macOS'
185184

186185
# Download remote files, if not already cached
187186
- 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
189190
if: steps.cache2.outputs.cache-hit != 'true' && runner.os == 'macOS'
190191

191192
# Install the package that we want to test

0 commit comments

Comments
 (0)