Skip to content

Commit

Permalink
Merge pull request #462 from apache/454-notebook-testing
Browse files Browse the repository at this point in the history
MAHOUT-454 Notebook Testing
  • Loading branch information
andrewmusselman authored Sep 5, 2024
2 parents 7c68bf2 + 0ad0f77 commit a414865
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/notebook-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI for Jupyter Notebooks

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-notebooks:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nbconvert nbclient ipykernel
- name: Run Jupyter Notebooks
run: |
for notebook in $(find . -name '*.ipynb'); do
echo "Executing $notebook"
jupyter nbconvert --to notebook --execute --inplace $notebook
done

0 comments on commit a414865

Please sign in to comment.