From 00246d20714d24290f7f94cd3109c5b444da1e88 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:58:48 +0200 Subject: [PATCH] MAINT: simplify notebooks workflow --- .github/workflows/notebooks.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/workflows/notebooks.yml b/.github/workflows/notebooks.yml index c796543..49ddad9 100644 --- a/.github/workflows/notebooks.yml +++ b/.github/workflows/notebooks.yml @@ -23,22 +23,5 @@ jobs: enable-cache: true - name: Install graphviz run: sudo apt-get -y install graphviz - - if: github.event.inputs.notebook-selector == '' - name: Run all notebooks - run: uv run --extra test pytest - - if: github.event.inputs.notebook-selector - name: Run specific notebooks - run: | - function run-nbmake() { - set +e - uv run --extra test pytest ${{ github.event.inputs.notebook-selector }} - error_code=$? - set -e - echo "Pytest returned error code $error_code" - case $error_code in - 0|5) return 0;; - *) return $error_code;; - esac - } - run-nbmake - # cspell:ignore esac + - name: Run all notebooks + run: uv run --extra test pytest ${{ github.event.inputs.notebook-selector }}