-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
193 changed files
with
4,110 additions
and
1,648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ jobs: | |
|
||
# Install Micromamba with conda-forge dependencies | ||
- name: Setup Micromamba | ||
uses: mamba-org/[email protected].1 | ||
uses: mamba-org/[email protected].4 | ||
with: | ||
environment-name: pygmt | ||
condarc: | | ||
|
@@ -58,14 +58,14 @@ jobs: | |
cache-environment-key: micromamba-environment-${{ steps.date.outputs.date }} | ||
create-args: >- | ||
gmt=6.5.0 | ||
python=3.12 | ||
python=3.13 | ||
numpy | ||
pandas | ||
xarray | ||
netCDF4 | ||
packaging | ||
geopandas | ||
pyarrow | ||
pyarrow-core | ||
pytest | ||
pytest-codspeed | ||
pytest-mpl | ||
|
@@ -87,8 +87,8 @@ jobs: | |
|
||
# Run the benchmark tests | ||
- name: Run benchmarks | ||
uses: CodSpeedHQ/action@v3.1.0 | ||
uses: CodSpeedHQ/action@v3.2.0 | ||
with: | ||
# 'bash -el -c' is needed to use the custom shell. | ||
# See https://github.com/CodSpeedHQ/action/issues/65. | ||
run: bash -el -c "python -c \"import pygmt; pygmt.show_versions()\"; PYGMT_USE_EXTERNAL_DISPLAY=false python -m pytest -r P --pyargs pygmt --codspeed" | ||
run: bash -el -c "python -c \"import pygmt; pygmt.show_versions()\"; PYGMT_USE_EXTERNAL_DISPLAY=false python -m pytest -r P --pyargs pygmt --codspeed --override-ini addopts='--verbose'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,15 +43,15 @@ jobs: | |
|
||
# Install Micromamba with conda-forge dependencies | ||
- name: Setup Micromamba | ||
uses: mamba-org/[email protected].1 | ||
uses: mamba-org/[email protected].4 | ||
with: | ||
environment-name: pygmt | ||
condarc: | | ||
channels: | ||
- conda-forge | ||
- nodefaults | ||
create-args: >- | ||
python=3.12 | ||
python=3.13 | ||
gmt=6.5.0 | ||
numpy | ||
pandas | ||
|
@@ -76,7 +76,7 @@ jobs: | |
|
||
# Upload the downloaded files as artifacts to GitHub | ||
- name: Upload artifacts to GitHub | ||
uses: actions/upload-artifact@v4.4.3 | ||
uses: actions/upload-artifact@v4.6.0 | ||
with: | ||
name: gmt-cache | ||
include-hidden-files: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ jobs: | |
# Is it a draft Pull Request (true or false)? | ||
isDraft: | ||
- ${{ github.event.pull_request.draft }} | ||
# Only run one job (Ubuntu + Python 3.12) for draft PRs | ||
# Only run jobs on Ubuntu for draft PRs | ||
exclude: | ||
- os: macos-latest | ||
isDraft: true | ||
|
@@ -80,7 +80,7 @@ jobs: | |
|
||
# Install Micromamba with conda-forge dependencies | ||
- name: Setup Micromamba | ||
uses: mamba-org/[email protected].1 | ||
uses: mamba-org/[email protected].4 | ||
with: | ||
environment-name: pygmt | ||
condarc: | | ||
|
@@ -92,7 +92,7 @@ jobs: | |
# environment cache is persistent for one week. | ||
cache-environment-key: micromamba-environment-${{ steps.date.outputs.date }} | ||
create-args: >- | ||
python=3.12 | ||
python=3.13 | ||
gmt=6.5.0 | ||
ghostscript=10.04.0 | ||
numpy | ||
|
@@ -101,21 +101,25 @@ jobs: | |
netCDF4 | ||
packaging | ||
contextily | ||
geopandas<1.0 | ||
geopandas | ||
ipython | ||
pyarrow | ||
pyarrow-core | ||
rioxarray | ||
make | ||
pip | ||
python-build | ||
geodatasets | ||
myst-nb | ||
panel | ||
sphinx | ||
sphinx>=6.2 | ||
sphinx-autodoc-typehints | ||
sphinx-copybutton | ||
sphinx-design | ||
sphinx-gallery | ||
sphinx_rtd_theme<3.0 | ||
cairosvg | ||
sphinxcontrib-svg2pdfconverter | ||
tectonic | ||
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
|
@@ -134,9 +138,11 @@ jobs: | |
python -m build --sdist | ||
python -m pip install dist/* | ||
# Build the documentation | ||
- name: Build the documentation | ||
run: make -C doc clean all | ||
- name: Build the HTML documentation | ||
run: make -C doc clean html | ||
|
||
- name: Build the PDF documentation | ||
run: make -C doc pdf | ||
|
||
- name: Checkout the gh-pages branch | ||
uses: actions/[email protected] | ||
|
@@ -162,9 +168,14 @@ jobs: | |
# to get the right commit hash. | ||
message="Deploy $version from $(git rev-parse --short HEAD)" | ||
cd deploy | ||
# Need to have this file so that GitHub doesn't try to run Jekyll | ||
# Create some files in the root directory. | ||
# .nojekyll: Need to have this file so that GitHub doesn't try to run Jekyll | ||
touch .nojekyll | ||
# Delete all the files and replace with our new set | ||
# CNAME: Set the custom domain name | ||
echo "www.pygmt.org" > CNAME | ||
# index.html: Redirect to the latest version | ||
echo '<meta http-equiv="Refresh" content="0;url=latest/"/>' > index.html | ||
# Delete all the files and replace with our new set | ||
echo -e "\nRemoving old files from previous builds of ${version}:" | ||
rm -rvf ${version} | ||
echo -e "\nCopying HTML files to ${version}:" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,15 +42,15 @@ jobs: | |
|
||
# Install Micromamba with conda-forge dependencies | ||
- name: Setup Micromamba | ||
uses: mamba-org/[email protected].1 | ||
uses: mamba-org/[email protected].4 | ||
with: | ||
environment-name: pygmt | ||
condarc: | | ||
channels: | ||
- conda-forge | ||
- nodefaults | ||
create-args: >- | ||
python=3.12 | ||
python=3.13 | ||
gmt=6.5.0 | ||
numpy | ||
pandas | ||
|
@@ -60,7 +60,7 @@ jobs: | |
contextily | ||
geopandas | ||
ipython | ||
pyarrow | ||
pyarrow-core | ||
rioxarray | ||
make | ||
pip | ||
|
Oops, something went wrong.