Skip to content

Commit

Permalink
Add background notebook runner action
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Feb 5, 2024
1 parent 9c73768 commit 12b85d5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}

0 comments on commit 12b85d5

Please sign in to comment.