Skip to content

Commit

Permalink
reworking to remove scripts from this repo and move to NIGMS-Sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
John Turner committed Sep 6, 2024
1 parent d6e5898 commit 4e68378
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 281 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/check-links.yaml
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: ""
168 changes: 0 additions & 168 deletions .github/workflows/check_links.py

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/lint.py

This file was deleted.

37 changes: 4 additions & 33 deletions .github/workflows/notebook-lint.yaml
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: .
1 change: 0 additions & 1 deletion .github/workflows/requirements.txt

This file was deleted.

0 comments on commit 4e68378

Please sign in to comment.