Skip to content

Commit d35b74b

Browse files
committed
Merge branch 'master' into separate-workflows
2 parents 10a9a10 + b2b3d1f commit d35b74b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+85
-76
lines changed

.github/workflows/cache_data.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
gmt_cache:
1313
name: Cache GMT artifacts
1414
runs-on: macOS-latest
15+
defaults:
16+
run:
17+
shell: bash -l {0}
1518

1619
steps:
1720
# Setup Miniconda
@@ -23,21 +26,19 @@ jobs:
2326

2427
# Install GMT
2528
- name: Install GMT
26-
shell: bash -l {0}
2729
run: conda install -c conda-forge gmt=6.1.1
2830

2931
# Download remote files
3032
- name: Download remote data
31-
shell: bash -l {0}
3233
run: |
3334
gmt which -Ga @earth_relief_10m_p @earth_relief_10m_g \
3435
@earth_relief_30m_p @earth_relief_30m_g \
3536
@earth_relief_01d_p @earth_relief_01d_g \
3637
@earth_relief_05m_p @earth_relief_05m_g
3738
# Download one tile of the 03s srtm data.
3839
# @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.
4142
gmt which -Ga @N35E135.earth_relief_03s_g.nc
4243
gmt which -Ga @ridge.txt @Table_5_11.txt @test.dat.nc \
4344
@tut_bathy.nc @tut_quakes.ngdc @tut_ship.xyz \

.github/workflows/ci_tests.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
- os: ubuntu-latest
4545
python-version: 3.8
4646
isDraft: true
47+
defaults:
48+
run:
49+
shell: bash -l {0}
4750

4851
# environmental variables used in coverage
4952
env:
@@ -75,7 +78,6 @@ jobs:
7578

7679
# Install GMT and other required dependencies from conda-forge
7780
- name: Install dependencies
78-
shell: bash -l {0}
7981
run: |
8082
conda install gmt=6.1.1 numpy pandas xarray netCDF4 packaging \
8183
codecov coverage[toml] \
@@ -84,7 +86,6 @@ jobs:
8486
8587
# Show installed pkg information for postmortem diagnostic
8688
- name: List installed packages
87-
shell: bash -l {0}
8889
run: conda list
8990

9091
# Download cached remote files (artifacts) from GitHub
@@ -98,7 +99,6 @@ jobs:
9899

99100
# Move downloaded files to ~/.gmt directory and list them
100101
- name: Move and list downloaded remote files
101-
shell: bash -l {0}
102102
run: |
103103
mkdir -p ~/.gmt
104104
mv .gmt/* ~/.gmt
@@ -108,14 +108,12 @@ jobs:
108108
109109
# Install the package that we want to test
110110
- name: Install the package
111-
shell: bash -l {0}
112111
run: |
113112
python setup.py sdist --formats=zip
114113
pip install dist/*
115114
116115
# Run the tests
117116
- name: Test with pytest
118-
shell: bash -l {0}
119117
run: make test PYTEST_EXTRA="-r P"
120118

121119
# Upload diff images on test failure

.github/workflows/ci_tests_dev.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ jobs:
106106

107107
# Move downloaded files to ~/.gmt directory and list them
108108
- name: Move and list downloaded remote files
109-
shell: bash -l {0}
110109
run: |
111110
mkdir -p ~/.gmt
112111
mv .gmt/* ~/.gmt

doc/conf.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# isort: off
1010
from sphinx_gallery.sorting import ( # pylint: disable=no-name-in-module
1111
ExplicitOrder,
12-
FileNameSortKey,
12+
ExampleTitleSortKey,
1313
)
1414
from pygmt import __commit__, __version__
1515
from pygmt.sphinx_gallery import PyGMTScraper
@@ -71,10 +71,13 @@
7171
"gallery_dirs": ["gallery", "tutorials", "projections"],
7272
"subsection_order": ExplicitOrder(
7373
[
74-
"../examples/gallery/line",
75-
"../examples/gallery/coast",
76-
"../examples/gallery/plot",
77-
"../examples/gallery/grid",
74+
"../examples/gallery/maps",
75+
"../examples/gallery/lines",
76+
"../examples/gallery/symbols",
77+
"../examples/gallery/images",
78+
"../examples/gallery/3d_plots",
79+
"../examples/gallery/seismology",
80+
"../examples/gallery/embellishments",
7881
"../examples/projections/azim",
7982
"../examples/projections/conic",
8083
"../examples/projections/cyl",
@@ -88,7 +91,7 @@
8891
# Remove the "Download all examples" button from the top level gallery
8992
"download_all_examples": False,
9093
# Sort gallery example by file name instead of number of lines (default)
91-
"within_subsection_order": FileNameSortKey,
94+
"within_subsection_order": ExampleTitleSortKey,
9295
# directory where function granular galleries are stored
9396
"backreferences_dir": "api/generated/backreferences",
9497
# Modules for which function level galleries are created. In

doc/index.rst

Lines changed: 1 addition & 1 deletion

doc/install.rst

Lines changed: 22 additions & 18 deletions

examples/gallery/3d_plots/README.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
3D Plots
2+
--------

examples/gallery/coast/README.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)