This is an automated email from the ASF dual-hosted git repository.

rawkintrevo pushed a commit to branch 454-notebook-testing
in repository https://gitbox.apache.org/repos/asf/mahout.git

commit 2e81f1cb19e5029c921a05183e9377ab295b7dcf
Author: rawkintrevo <[email protected]>
AuthorDate: Thu Sep 5 10:48:07 2024 -0500

    add workflow
---
 .github/workflows/notebook-testing.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/.github/workflows/notebook-testing.yml 
b/.github/workflows/notebook-testing.yml
new file mode 100644
index 000000000..a39fe4ea1
--- /dev/null
+++ b/.github/workflows/notebook-testing.yml
@@ -0,0 +1,34 @@
+name: CI for Jupyter Notebooks
+
+on:
+  push:
+    branches:
+      - 454-notebook-testing
+  pull_request:
+    branches:
+      - 454-notebook-testing
+
+jobs:
+  test-notebooks:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v2
+
+      - name: Set up Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: "3.8"
+
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip  
+          pip install nbconvert nbclient  
+
+      - name: Run Jupyter Notebooks
+        run: |
+          for notebook in $(find . -name '*.ipynb'); do  
+            echo "Executing $notebook"  
+            jupyter nbconvert --to notebook --execute --inplace $notebook  
+          done

Reply via email to