Updated submodule notebooks with titles and learning objectives #8
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
name: 'Lint Notebook' | |
on: | |
workflow_call: | |
inputs: | |
directory: | |
required: false | |
type: string | |
push: | |
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' |