-
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 'master' into newfeature_xyz2grd
- Loading branch information
Showing
48 changed files
with
860 additions
and
282 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
python-version: 3.7 | ||
|
||
- name: Install packages | ||
run: pip install black flake8 pylint | ||
run: pip install black blackdoc flake8 pylint | ||
|
||
- name: Formatting check (black and flake8) | ||
run: make check | ||
|
@@ -89,8 +89,8 @@ jobs: | |
shell: bash -l {0} | ||
run: conda list | ||
|
||
# Download cached remote files (artifacts) from Github | ||
- name: Download remote data from Github | ||
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: cache_data.yaml | ||
|
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: | |
matrix: | ||
python-version: [3.8] | ||
os: [ubuntu-20.04, macOS-10.15] | ||
gmt_git_ref: [6.1, master] | ||
gmt_git_ref: [master] | ||
env: | ||
# LD_LIBRARY_PATH: ${{ github.workspace }}/gmt/lib:$LD_LIBRARY_PATH | ||
GMT_INSTALL_DIR: ${{ github.workspace }}/gmt-install-dir | ||
|
@@ -61,8 +61,8 @@ jobs: | |
env: | ||
GMT_GIT_REF: ${{ matrix.gmt_git_ref }} | ||
|
||
# Download cached remote files (artifacts) from Github | ||
- name: Download remote data from Github | ||
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
workflow: cache_data.yaml | ||
|
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: format-command | ||
on: | ||
repository_dispatch: | ||
types: [format-command] | ||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Generate token from GenericMappingTools bot | ||
- uses: tibdex/github-app-token@v1 | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
||
# Checkout the pull request branch | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.client_payload.pull_request.head.ref }} | ||
|
||
# Setup Python environment | ||
- uses: actions/setup-python@v1 | ||
|
||
# Install formatting tools | ||
- name: Install formatting tools | ||
run: pip install black blackdoc flake8 | ||
|
||
# Run "make format" and commit the change to the PR branch | ||
- name: Commit to the PR branch if any changes | ||
run: | | ||
make format | ||
if [[ $(git ls-files -m) ]]; then | ||
git config --global user.name 'actions-bot' | ||
git config --global user.email '[email protected]' | ||
git commit -am "[format-command] fixes" | ||
git push | ||
fi | ||
- name: Add reaction | ||
uses: peter-evans/create-or-update-comment@v1 | ||
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 }} | ||
reaction-type: 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Slash Command Dispatch | ||
on: | ||
issue_comment: | ||
types: [created] | ||
# Add "edited" type for test purposes. Where possible, avoid using to prevent processing unnecessary events. | ||
# types: [created, edited] | ||
jobs: | ||
slashCommandDispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Generate token from GenericMappingTools bot | ||
- uses: tibdex/github-app-token@v1 | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
||
- name: Slash Command Dispatch | ||
uses: peter-evans/slash-command-dispatch@v2 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
commands: | | ||
format | ||
issue-type: pull-request |
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
Oops, something went wrong.