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