File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 12
12
gmt_cache :
13
13
name : Cache GMT artifacts
14
14
runs-on : macOS-latest
15
+ defaults :
16
+ run :
17
+ shell : bash -l {0}
15
18
16
19
steps :
17
20
# Setup Miniconda
@@ -23,21 +26,19 @@ jobs:
23
26
24
27
# Install GMT
25
28
- name : Install GMT
26
- shell : bash -l {0}
27
29
run : conda install -c conda-forge gmt=6.1.1
28
30
29
31
# Download remote files
30
32
- name : Download remote data
31
- shell : bash -l {0}
32
33
run : |
33
34
gmt which -Ga @earth_relief_10m_p @earth_relief_10m_g \
34
35
@earth_relief_30m_p @earth_relief_30m_g \
35
36
@earth_relief_01d_p @earth_relief_01d_g \
36
37
@earth_relief_05m_p @earth_relief_05m_g
37
38
# Download one tile of the 03s srtm data.
38
39
# @N35E135.earth_relief_03s_g.nc is for internal use only.
39
- # The naming scheme may change.
40
- # DO NOT USE IT IN SCRIPTS.
40
+ # The naming scheme may change.
41
+ # DO NOT USE IT IN SCRIPTS.
41
42
gmt which -Ga @N35E135.earth_relief_03s_g.nc
42
43
gmt which -Ga @ridge.txt @Table_5_11.txt @test.dat.nc \
43
44
@tut_bathy.nc @tut_quakes.ngdc @tut_ship.xyz \
Original file line number Diff line number Diff line change 45
45
- os : ubuntu-latest
46
46
python-version : 3.8
47
47
isDraft : true
48
+ defaults :
49
+ run :
50
+ shell : bash -l {0}
48
51
49
52
# environmental variables used in coverage
50
53
env :
@@ -76,12 +79,10 @@ jobs:
76
79
77
80
# Install GMT and other required dependencies from conda-forge
78
81
- name : Install dependencies
79
- shell : bash -l {0}
80
82
run : conda env update --file environment.yml
81
83
82
84
# Show installed pkg information for postmortem diagnostic
83
85
- name : List installed packages
84
- shell : bash -l {0}
85
86
run : conda list
86
87
87
88
# Download cached remote files (artifacts) from GitHub
95
96
96
97
# Move downloaded files to ~/.gmt directory and list them
97
98
- name : Move and list downloaded remote files
98
- shell : bash -l {0}
99
99
run : |
100
100
mkdir -p ~/.gmt
101
101
mv .gmt/* ~/.gmt
@@ -105,14 +105,12 @@ jobs:
105
105
106
106
# Install the package that we want to test
107
107
- name : Install the package
108
- shell : bash -l {0}
109
108
run : |
110
109
python setup.py sdist --formats=zip
111
110
pip install dist/*
112
111
113
112
# Run the tests
114
113
- name : Test with pytest
115
- shell : bash -l {0}
116
114
run : make test PYTEST_EXTRA="-r P"
117
115
118
116
# Upload diff images on test failure
@@ -125,7 +123,6 @@ jobs:
125
123
126
124
# Build the documentation
127
125
- name : Build the documentation
128
- shell : bash -l {0}
129
126
run : make -C doc clean all
130
127
131
128
# Upload coverage to Codecov
Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ jobs:
106
106
107
107
# Move downloaded files to ~/.gmt directory and list them
108
108
- name : Move and list downloaded remote files
109
- shell : bash -l {0}
110
109
run : |
111
110
mkdir -p ~/.gmt
112
111
mv .gmt/* ~/.gmt
You can’t perform that action at this time.
0 commit comments