Skip to content

Commit

Permalink
MAINT: simplify notebooks workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 24, 2024
1 parent 27153cd commit 00246d2
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 00246d2

Please sign in to comment.