Notebook updates #21
Workflow file for this run
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 and Format Checks | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
lint-and-format-check: | |
runs-on: ubuntu-latest | |
name: Lint and Format Checks | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Set up Python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Back Formatting Check | |
uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
src: "./" | |
jupyter: true | |
- name: Setup Flake8 Annotations | |
uses: rbialon/[email protected] | |
- name: Lint with Flake8 | |
uses: py-actions/flake8@v2 | |
- name: Install Flake8 for Jupyter Notebooks | |
run: | | |
pip install --upgrade pip | |
pip install flake8-nb | |
- name: Run Flake8 for Jupyter Notebooks | |
run: | | |
flake8-nb . | |
- name: Ensure Clean Notebooks | |
uses: ResearchSoftwareActions/[email protected] |