-
Notifications
You must be signed in to change notification settings - Fork 225
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 add-tutorial-meca
- Loading branch information
Showing
142 changed files
with
1,802 additions
and
1,186 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
|
@@ -37,14 +37,14 @@ jobs: | |
steps: | ||
# Checkout current git repository | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
# fetch all history so that setuptools-scm works | ||
fetch-depth: 0 | ||
|
||
# Install Miniconda with conda-forge dependencies | ||
- name: Setup Miniconda | ||
uses: conda-incubator/[email protected].3 | ||
uses: conda-incubator/[email protected].4 | ||
with: | ||
auto-activate-base: true | ||
activate-environment: "" # base environment | ||
|
@@ -64,29 +64,25 @@ jobs: | |
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: cache_data.yaml | ||
workflow_conclusion: success | ||
name: gmt-cache | ||
path: .gmt | ||
|
||
# Move downloaded files to ~/.gmt directory and list them | ||
- name: Move and list downloaded remote files | ||
run: | | ||
gh run download -n gmt-cache -D gmt-cache | ||
# Move downloaded files to ~/.gmt directory and list them | ||
mkdir -p ~/.gmt | ||
mv .gmt/* ~/.gmt | ||
mv gmt-cache/* ~/.gmt | ||
rmdir gmt-cache | ||
# Change modification times of the two files, so GMT won't refresh it | ||
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt | ||
ls -lhR ~/.gmt | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
# Install the package that we want to test | ||
- name: Install the package | ||
run: make install | ||
|
||
# Run the benchmark tests | ||
- name: Run benchmarks | ||
uses: CodSpeedHQ/action@v2.3.0 | ||
uses: CodSpeedHQ/action@v2.4.1 | ||
with: | ||
run: | | ||
python -c "import pygmt; pygmt.show_versions()" | ||
|
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 |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
steps: | ||
# Checkout current git repository | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
# fetch all history so that setuptools-scm works | ||
fetch-depth: 0 | ||
|
@@ -80,7 +80,7 @@ jobs: | |
with: | ||
name: gmt-cache | ||
path: | | ||
~/.gmt/cache | ||
~/.gmt/server | ||
~/.gmt/gmt_data_server.txt | ||
~/.gmt/gmt_hash_server.txt | ||
~/.gmt/cache | ||
~/.gmt/server | ||
~/.gmt/gmt_data_server.txt | ||
~/.gmt/gmt_hash_server.txt |
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 |
---|---|---|
|
@@ -23,19 +23,19 @@ jobs: | |
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
path: repository | ||
|
||
- name: Checkout the documentation | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
ref: gh-pages | ||
path: documentation | ||
|
||
- name: Link Checker | ||
id: lychee | ||
uses: lycheeverse/lychee-action@v1.9.3 | ||
uses: lycheeverse/lychee-action@v1.10.0 | ||
with: | ||
# 429: Too many requests | ||
args: > | ||
|
@@ -72,4 +72,4 @@ jobs: | |
title="Link Checker Report on ${{ steps.date.outputs.date }}" | ||
gh issue create --title "$title" --body-file ./lychee/out.md | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
GH_TOKEN: ${{ github.token }} |
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 |
---|---|---|
|
@@ -69,7 +69,7 @@ jobs: | |
steps: | ||
# Checkout current git repository | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
# fetch all history so that setuptools-scm works | ||
fetch-depth: 0 | ||
|
@@ -112,21 +112,17 @@ jobs: | |
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: cache_data.yaml | ||
workflow_conclusion: success | ||
name: gmt-cache | ||
path: .gmt | ||
|
||
# Move downloaded files to ~/.gmt directory and list them | ||
- name: Move and list downloaded remote files | ||
run: | | ||
gh run download -n gmt-cache -D gmt-cache | ||
# Move downloaded files to ~/.gmt directory and list them | ||
mkdir -p ~/.gmt | ||
mv .gmt/* ~/.gmt | ||
mv gmt-cache/* ~/.gmt | ||
rmdir gmt-cache | ||
# Change modification times of the two files, so GMT won't refresh it | ||
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt | ||
ls -lhR ~/.gmt | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
# Install the package that we want to test | ||
- name: Install the package | ||
|
@@ -139,7 +135,7 @@ jobs: | |
run: make -C doc clean all | ||
|
||
- name: Checkout the gh-pages branch | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
ref: gh-pages | ||
# Checkout to this folder instead of the current one | ||
|
@@ -162,7 +158,7 @@ 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 | ||
# 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 | ||
echo -e "\nRemoving old files from previous builds of ${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 |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
steps: | ||
# Checkout current git repository | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
# fetch all history so that setuptools-scm works | ||
fetch-depth: 0 | ||
|
@@ -71,21 +71,17 @@ jobs: | |
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: cache_data.yaml | ||
workflow_conclusion: success | ||
name: gmt-cache | ||
path: .gmt | ||
|
||
# Move downloaded files to ~/.gmt directory and list them | ||
- name: Move and list downloaded remote files | ||
run: | | ||
gh run download -n gmt-cache -D gmt-cache | ||
# Move downloaded files to ~/.gmt directory and list them | ||
mkdir -p ~/.gmt | ||
mv .gmt/* ~/.gmt | ||
mv gmt-cache/* ~/.gmt | ||
rmdir gmt-cache | ||
# Change modification times of the two files, so GMT won't refresh it | ||
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt | ||
ls -lhR ~/.gmt | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
# Install the package that we want to test | ||
- name: Install the package | ||
|
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 |
---|---|---|
|
@@ -92,7 +92,7 @@ jobs: | |
steps: | ||
# Checkout current git repository | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
# fetch all history so that setuptools-scm works | ||
fetch-depth: 0 | ||
|
@@ -128,21 +128,17 @@ jobs: | |
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: cache_data.yaml | ||
workflow_conclusion: success | ||
name: gmt-cache | ||
path: .gmt | ||
|
||
# Move downloaded files to ~/.gmt directory and list them | ||
- name: Move and list downloaded remote files | ||
run: | | ||
gh run download -n gmt-cache -D gmt-cache | ||
# Move downloaded files to ~/.gmt directory and list them | ||
mkdir -p ~/.gmt | ||
mv .gmt/* ~/.gmt | ||
mv gmt-cache/* ~/.gmt | ||
rmdir gmt-cache | ||
# Change modification times of the two files, so GMT won't refresh it | ||
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt | ||
ls -lhR ~/.gmt | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
# Pull baseline image data from dvc remote (DAGsHub) | ||
- name: Pull baseline image data from dvc remote | ||
|
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 |
---|---|---|
|
@@ -47,7 +47,7 @@ jobs: | |
steps: | ||
# Checkout current git repository | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
# fetch all history so that setuptools-scm works | ||
fetch-depth: 0 | ||
|
@@ -135,21 +135,17 @@ jobs: | |
|
||
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: cache_data.yaml | ||
workflow_conclusion: success | ||
name: gmt-cache | ||
path: .gmt | ||
|
||
# Move downloaded files to ~/.gmt directory and list them | ||
- name: Move and list downloaded remote files | ||
run: | | ||
gh run download -n gmt-cache -D gmt-cache | ||
# Move downloaded files to ~/.gmt directory and list them | ||
mkdir -p ~/.gmt | ||
mv .gmt/* ~/.gmt | ||
mv gmt-cache/* ~/.gmt | ||
rmdir gmt-cache | ||
# Change modification times of the two files, so GMT won't refresh it | ||
touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt | ||
ls -lhR ~/.gmt | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
# Install the package that we want to test | ||
- name: Install the package | ||
|
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 |
---|---|---|
|
@@ -44,7 +44,7 @@ jobs: | |
steps: | ||
# Checkout current git repository | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
# fetch all history so that setuptools-scm works | ||
fetch-depth: 0 | ||
|
@@ -83,24 +83,20 @@ jobs: | |
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: cache_data.yaml | ||
workflow_conclusion: success | ||
name: gmt-cache | ||
path: .gmt | ||
|
||
# Move downloaded files to ~/.gmt directory and list them | ||
- name: Move and list downloaded remote files | ||
run: | | ||
gh run download -n gmt-cache -D gmt-cache | ||
# Move downloaded files to ~/.gmt directory and list them | ||
mkdir -p ~/.gmt | ||
mv .gmt/* ~/.gmt | ||
mv gmt-cache/* ~/.gmt | ||
rmdir gmt-cache | ||
# Change modification times of the two files, so GMT won't refresh it | ||
# The two files are in the `~/.gmt/server` directory for GMT<=6.4, and | ||
# in the `~/.gmt` directory for GMT>=6.5. | ||
mv ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt ~/.gmt/server/ | ||
touch ~/.gmt/server/gmt_data_server.txt ~/.gmt/server/gmt_hash_server.txt | ||
ls -lhR ~/.gmt | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
# Install the package that we want to test | ||
- name: Install the package | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
# fetch all history so that dvc diff works | ||
fetch-depth: 0 | ||
|
@@ -52,7 +52,7 @@ jobs: | |
# Report last updated at commit abcdef | ||
- name: Generate the image diff report | ||
env: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
repo_token: ${{ github.token }} | ||
run: | | ||
echo -e "## Summary of changed images\n" > report.md | ||
echo -e "This is an auto-generated report of images that have changed on the DVC remote\n" >> report.md | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
||
# Checkout the pull request branch | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].4 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} | ||
|
@@ -48,11 +48,3 @@ jobs: | |
git commit -am "[format-command] fixes" | ||
git push | ||
fi | ||
- name: Add reaction | ||
uses: peter-evans/[email protected] | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
repository: ${{ github.event.client_payload.github.payload.repository.full_name }} | ||
comment-id: ${{ github.event.client_payload.github.payload.comment.id }} | ||
reactions: hooray |
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: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
with: | ||
# fetch all history so that setuptools-scm works | ||
fetch-depth: 0 | ||
|
Oops, something went wrong.