From ca930b347cd1d80ff7ee56c72b63e342aeee25fe Mon Sep 17 00:00:00 2001 From: Alixe Langshall Date: Tue, 7 May 2024 19:28:07 -0700 Subject: [PATCH] Add linting for ipynb files --- .github/workflows/pynblint.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pynblint.yml diff --git a/.github/workflows/pynblint.yml b/.github/workflows/pynblint.yml new file mode 100644 index 0000000..c251dad --- /dev/null +++ b/.github/workflows/pynblint.yml @@ -0,0 +1,25 @@ +# This is a basic workflow to help you get started with Actions + +name: pynblint + +# Controls when the workflow will run +on: [push, pull_request] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "lint" + lint: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + # Install pynblint + - name: Install pynblint + run: sudo pip install pynblint + - name: Install lxml[html_clean] + run: sudo pip install lxml[html_clean] + - name: Run pynblint + run: pynblint -y $GITHUB_WORKSPACE