-
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.
Merge branch 'main' into load_remote_dataset
- Loading branch information
Showing
93 changed files
with
2,073 additions
and
550 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
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 |
---|---|---|
|
@@ -56,7 +56,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.10', '3.12'] | ||
python-version: ['3.11', '3.13'] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
# Is it a draft Pull Request (true or false)? | ||
isDraft: | ||
|
@@ -68,21 +68,21 @@ jobs: | |
- os: windows-latest | ||
isDraft: true | ||
include: | ||
# Python 3.10 + core packages (minimum supported versions) + optional packages (minimum supported versions if any) | ||
- python-version: '3.10' | ||
numpy-version: '1.24' | ||
# Python 3.11 + core packages (minimum supported versions) + optional packages (minimum supported versions if any) | ||
- python-version: '3.11' | ||
numpy-version: '1.25' | ||
pandas-version: '=2.0' | ||
xarray-version: '=2023.04' | ||
optional-packages: ' contextily geopandas<1 ipython pyarrow rioxarray sphinx-gallery' | ||
# Python 3.12 + core packages (latest versions) + optional packages | ||
- python-version: '3.12' | ||
optional-packages: ' contextily geopandas<1 ipython pyarrow-core rioxarray sphinx-gallery' | ||
# Python 3.13 + core packages (latest versions) + optional packages | ||
- python-version: '3.13' | ||
numpy-version: '2.2' | ||
pandas-version: '' | ||
xarray-version: '' | ||
optional-packages: ' contextily geopandas>=1.0 ipython pyarrow rioxarray sphinx-gallery' | ||
# Python 3.11 + core packages (Linux only) | ||
optional-packages: ' contextily geopandas>=1.0 ipython pyarrow-core rioxarray sphinx-gallery' | ||
# Python 3.12 + core packages (Linux only) | ||
- os: 'ubuntu-latest' | ||
python-version: '3.11' | ||
python-version: '3.12' | ||
numpy-version: '' | ||
pandas-version: '' | ||
xarray-version: '' | ||
|
@@ -133,7 +133,6 @@ jobs: | |
xarray${{ matrix.xarray-version }} | ||
netCDF4 | ||
packaging | ||
dvc | ||
make | ||
pip | ||
python-build | ||
|
@@ -154,9 +153,19 @@ jobs: | |
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
- name: Install uv | ||
uses: astral-sh/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dvc | ||
run: | | ||
uv pip install dvc | ||
uv pip list | ||
# Pull baseline image data from dvc remote (DAGsHub) | ||
- name: Pull baseline image data from dvc remote | ||
run: dvc pull --no-run-cache --verbose && ls -lhR pygmt/tests/baseline/ | ||
run: uv run dvc pull --no-run-cache --verbose && ls -lhR pygmt/tests/baseline/ | ||
|
||
# Install the package that we want to test | ||
- name: Install the package | ||
|
@@ -168,15 +177,15 @@ jobs: | |
|
||
# Upload diff images on test failure | ||
- name: Upload diff images if any test fails | ||
uses: actions/upload-artifact@v4.4.3 | ||
uses: actions/upload-artifact@v4.5.0 | ||
if: failure() | ||
with: | ||
name: artifact-${{ runner.os }}-${{ matrix.python-version }} | ||
path: tmp-test-dir-with-unique-name | ||
|
||
# Upload coverage to Codecov | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v5.0.7 | ||
uses: codecov/codecov-action@v5.1.2 | ||
if: success() || failure() | ||
with: | ||
use_oidc: 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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
# Generate token from GenericMappingTools bot | ||
- uses: actions/[email protected].0 | ||
- uses: actions/[email protected].1 | ||
id: generate-token | ||
with: | ||
app-id: ${{ secrets.APP_ID }} | ||
|
@@ -27,7 +27,7 @@ jobs: | |
# Setup Python environment | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
python-version: '3.13' | ||
|
||
# Install formatting tools | ||
- name: Install formatting tools | ||
|
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 |
---|---|---|
|
@@ -53,7 +53,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
python-version: '3.13' | ||
|
||
- name: Install dependencies | ||
run: python -m pip install build | ||
|
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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
python-version: '3.13' | ||
|
||
- name: Install packages | ||
run: | | ||
|
@@ -52,3 +52,15 @@ jobs: | |
rm output.txt | ||
exit $nfiles | ||
fi | ||
- name: Ensure hyphens are not used in names of directories and Python files | ||
run: | | ||
git ls-files '*.py' | grep '-' > output.txt || true | ||
git ls-tree -rd --name-only HEAD | grep '-' >> output.txt || true | ||
nfiles=$(wc --lines output.txt | awk '{print $1}') | ||
if [[ $nfiles > 0 ]]; then | ||
echo "Following directories/files use hyphens in file names:" | ||
cat output.txt | ||
rm output.txt | ||
exit $nfiles | ||
fi |
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 |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.12' | ||
python-version: '3.13' | ||
|
||
- name: Install packages | ||
run: | | ||
|
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
Oops, something went wrong.