-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reworking to remove scripts from this repo and move to NIGMS-Sandbox
- Loading branch information
John Turner
committed
Sep 6, 2024
1 parent
d6e5898
commit 4e68378
Showing
5 changed files
with
9 additions
and
281 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,13 @@ | ||
name: 'Check Links' | ||
on: | ||
workflow_call: | ||
inputs: | ||
directory: | ||
required: false | ||
type: string | ||
repo_link_ignore_list: | ||
required: true | ||
type: string | ||
secrets: | ||
PAT: | ||
required: false | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
link_check: | ||
name: 'Link Check' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Link Check | ||
run: | | ||
echo ${{jobs.link_check.uses}} | ||
- name: Link Check | ||
run: | | ||
python3 ${{github.action_path}}/check_links.py | ||
env: | ||
LINK_IGNORE_LIST: https://www.sciencedirect.com,https://portlandpress.com | ||
PAT: ${{ secrets.PAT }} | ||
uses: NIGMS/NIGMS-Sandbox/.github/workflows/check-links.yaml@main | ||
with: | ||
repo_link_ignore_list: "" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,43 +1,14 @@ | ||
name: 'Lint Notebook' | ||
on: | ||
workflow_call: | ||
inputs: | ||
directory: | ||
required: false | ||
type: string | ||
push: | ||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
jobs: | ||
lint: | ||
name: 'Linting' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: 'pip' | ||
|
||
- name: Install requirements.txt | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip3 install nbformat | ||
- name: Notebook Linting | ||
working-directory: .github/workflows | ||
run: | | ||
python3 lint.py | ||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: github-action | ||
author_email: [email protected] | ||
message: 'Github Action: Refresh stats' | ||
uses: NIGMS/NIGMS-Sandbox/.github/workflows/notebook-lint.yaml@main | ||
with: | ||
directory: . |
This file was deleted.
Oops, something went wrong.