From 85655824101016ef1f6eab72e2924a34bd969747 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:03:48 +0200 Subject: [PATCH] MAINT: remove redundant notebook workflows --- .github/workflows/notebooks.yml | 44 --------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 .github/workflows/notebooks.yml diff --git a/.github/workflows/notebooks.yml b/.github/workflows/notebooks.yml deleted file mode 100644 index 133537fb..00000000 --- a/.github/workflows/notebooks.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Run all notebooks - -on: - workflow_dispatch: - inputs: - notebook-selector: - description: Relative path to notebooks - required: false - type: string - -jobs: - pytest: - name: Test all notebooks - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: actions/cache@v4 - with: - key: | - ${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{ hashFiles('.constraints/py3.*.txt', 'setup.cfg') }} - path: | - .pytest_cache - ~/.cache/pip/ - - uses: actions/setup-python@v5 - with: - python-version: "3.9" - - name: Install dependencies - run: | - sudo apt-get -y install graphviz - pip install -c .constraints/py3.9.txt .[test] - - run: | - function run-nbmake() { - set +e - pytest --nbmake ${{ 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