@@ -17,34 +17,36 @@ jobs:
17
17
shell : bash -l {0}
18
18
19
19
steps :
20
+ # Checkout current git repository
21
+ - name : Checkout
22
+ uses : actions/checkout@v2.3.4
23
+ with :
24
+ # fecth all history so that setuptools-scm works
25
+ fetch-depth : 0
26
+
20
27
# Setup Miniconda
21
28
- name : Setup Miniconda
22
29
uses : conda-incubator/setup-miniconda@v2.1.1
23
30
with :
24
31
channels : conda-forge
25
32
miniconda-version : " latest"
26
33
27
- # Install GMT
28
- - name : Install GMT
29
- run : conda install -c conda-forge/label/dev gmt=6.2.0rc2
34
+ # Install GMT and other required dependencies from conda-forge
35
+ - name : Install dependencies
36
+ run : |
37
+ conda install gmt=6.2.0 \
38
+ numpy pandas xarray netCDF4 packaging matplotlib
39
+
40
+ # Install the package that we want to test
41
+ - name : Install the package
42
+ run : |
43
+ python setup.py sdist --formats=zip
44
+ pip install dist/*
30
45
31
46
# Download remote files
32
47
- name : Download remote data
33
48
run : |
34
- gmt which -Ga @earth_relief_10m_p @earth_relief_10m_g \
35
- @earth_relief_30m_p @earth_relief_30m_g \
36
- @earth_relief_01d_p @earth_relief_01d_g \
37
- @earth_relief_05m_p @earth_relief_05m_g
38
- # Download one tile of the 03s srtm data.
39
- # @N35E135.earth_relief_03s_g.nc is for internal use only.
40
- # The naming scheme may change.
41
- # DO NOT USE IT IN SCRIPTS.
42
- gmt which -Ga @N35E135.earth_relief_03s_g.nc
43
- # @srtm_tiles.nc is needed for 03s and 01s relief data
44
- gmt which -Ga @srtm_tiles.nc
45
- gmt which -Ga @ridge.txt @Table_5_11.txt @test.dat.nc \
46
- @tut_bathy.nc @tut_quakes.ngdc @tut_ship.xyz \
47
- @usgs_quakes_22.txt @fractures_06.txt
49
+ python -c "from pygmt.helpers.testing import download_test_data; download_test_data()"
48
50
49
51
# Upload the downloaded files as artifacts to GitHub
50
52
- name : Upload artifacts to GitHub
0 commit comments