From fbe4f07bef4b42288e1b2a0dd0f90e1ad043adde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jan=C3=9Fen?= Date: Tue, 25 Mar 2025 18:06:27 +0100 Subject: [PATCH] Execute notebooks individually --- .ci_support/build_notebooks.sh | 11 ----------- .github/workflows/pipeline.yml | 8 +++++--- 2 files changed, 5 insertions(+), 14 deletions(-) delete mode 100755 .ci_support/build_notebooks.sh diff --git a/.ci_support/build_notebooks.sh b/.ci_support/build_notebooks.sh deleted file mode 100755 index 08c14214..00000000 --- a/.ci_support/build_notebooks.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# execute notebooks -i=0; -for notebook in $(ls notebooks/*.ipynb); do - papermill ${notebook} ${notebook%.*}-out.${notebook##*.} -k python3 || i=$((i+1)); -done; - -# push error to next level -if [ $i -gt 0 ]; then - exit 1; -fi; \ No newline at end of file diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 12658130..818fcdd9 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -167,9 +167,11 @@ jobs: - name: Notebooks shell: bash -l {0} timeout-minutes: 5 - run: > - flux start - .ci_support/build_notebooks.sh + run: | + papermill notebooks/1-single-node.ipynb notebooks/1-single-node-out.ipynb -k python3 + flux start papermill notebooks/2-hpc-cluster.ipynb notebooks/2-hpc-cluster-out.ipynb -k python3 + flux start papermill notebooks/3-hpc-job.ipynb notebooks/3-hpc-job-out.ipynb -k python3 + papermill notebooks/4-developer.ipynb notebooks/4-developer-out.ipynb -k python3 unittest_flux_mpich: needs: [black]