-
Notifications
You must be signed in to change notification settings - Fork 357
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' of https://github.com/GenericMappingTools/gmt
- Loading branch information
Showing
23 changed files
with
140 additions
and
116 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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
# This workflow checks the links in plaintext files in the repository | ||
# Check links in plaintext files in the repository | ||
# | ||
# This workflow runs the lychee tool to check all links in plaintext files. It will | ||
# create an issue if broken links are found. | ||
# | ||
# It is scheduled to run weekly at 12 noon every Sunday. | ||
# | ||
name: Check Links | ||
|
||
on: | ||
# Uncomment the 'pull_request' line below to trigger the workflow in PR | ||
# pull_request: | ||
workflow_dispatch: | ||
# Schedule runs on 12 noon every Sunday | ||
schedule: | ||
- cron: '0 12 * * 0' | ||
|
@@ -12,12 +19,14 @@ jobs: | |
check_links: | ||
name: Check Links | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'GenericMappingTools/gmt' | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
|
||
- name: Link Checker | ||
id: lychee | ||
uses: lycheeverse/[email protected] | ||
with: | ||
# 429: Too many requests | ||
|
@@ -43,15 +52,15 @@ jobs: | |
**/*.rst | ||
**/*.rst_ | ||
**/*.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Get current date | ||
id: date | ||
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | ||
|
||
- name: Create Issue From File | ||
uses: peter-evans/create-issue-from-file@v5 | ||
with: | ||
title: Link Checker Report on ${{ steps.date.outputs.date }} | ||
content-filepath: ./lychee/out.md | ||
if: env.lychee_exit_code != 0 | ||
run: | | ||
title="Link Checker Report on ${{ steps.date.outputs.date }}" | ||
gh issue create --title "$title" --body-file ./lychee/out.md | ||
env: | ||
GH_TOKEN: ${{secrets.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
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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
uses: iterative/[email protected] | ||
|
||
- name: Setup continuous machine learning (CML) | ||
uses: iterative/setup-cml@v2.0.1 | ||
uses: iterative/setup-cml@v3 | ||
|
||
- name: Setup Micromamba | ||
uses: mamba-org/[email protected] | ||
|
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 |
---|---|---|
|
@@ -14,6 +14,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: github.repository == 'GenericMappingTools/gmt' | ||
|
||
permissions: | ||
# To write assets to GitHub release | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -39,7 +43,6 @@ jobs: | |
shasum -a 256 baseline-images.zip | ||
- name: Upload baseline image as a release asset | ||
uses: shogo82148/[email protected] | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: baseline-images.zip | ||
run: gh release upload ${{ github.ref_name }} baseline-images.zip | ||
env: | ||
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Report the list of known failures. | ||
# | ||
|
||
if [ ! -d cmake ]; then | ||
echo "Must be run from top-level gmt directory" | ||
exit 1 | ||
fi | ||
|
||
known_failures=$(grep -rl "GMT_KNOWN_FAILURE" test/**/*.sh doc/**/*.sh) | ||
if [ -n "$known_failures" ]; then | ||
echo "The following tests are marked as GMT_KNOWN_FAILURE and need review:" | ||
echo "" | ||
while IFS= read -r line; do | ||
echo "- $line" | ||
done <<< $known_failures | ||
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
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.