From 12b85d53253e01cdebf5c3a40b1c884f9cee4789 Mon Sep 17 00:00:00 2001 From: Jake <37048747+Jacob-Stevens-Haas@users.noreply.github.com> Date: Mon, 5 Feb 2024 12:24:23 +0000 Subject: [PATCH] Add background notebook runner action --- .github/workflows/notebooks.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/notebooks.yml diff --git a/.github/workflows/notebooks.yml b/.github/workflows/notebooks.yml new file mode 100644 index 000000000..da9e55ea3 --- /dev/null +++ b/.github/workflows/notebooks.yml @@ -0,0 +1,34 @@ +on: + push: + branches: + - notebooks-review + # Uncomment in actual merge + # schedule: + # # run twice a month during times when hopefully few other jobs are scheduled + # - cron: '0 12 5,20 * *' + +jobs: + find-notebooks: + runs-on: ubuntu-latest + outputs: + paths: ${{ steps.find-notebooks.outputs.paths }} + steps: + - name: List Files + id: find-notebooks + uses: mirko-felice/list-files-action@v3.0.5 + with: + repo: ${{ github.repository }} + ref: ${{ github.ref }} + path: "examples" + ext: ".ipynb" + run-notebooks: + needs: find-notebooks + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + files: ${{ fromJson(needs.find-notebooks.outputs.paths) }} + steps: + - name: output results + run: | + echo ${{ matrix.files }}