Skip to content

Commit

Permalink
ci[patch]: fix validate notebook ci check (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Aug 28, 2024
1 parent bf063f4 commit a612b4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/validate-new-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ concurrency:

on:
push:
branches:
- main
branches: ["main"]
pull_request:
branches:
- main
paths:
- 'docs/docs/**'
- 'examples/**'
- '**.ipynb'
- 'deno.json'
workflow_dispatch:

Expand All @@ -42,7 +38,6 @@ jobs:
- name: Validate
run: yarn tsx --experimental-wasm-modules ./scripts/validate_deps_sync.ts

jobs:
validate-new-notebooks:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -71,7 +66,7 @@ jobs:
run: |
notebooks=$(echo '${{ steps.changed-files.outputs.all_changed_files }}' | tr ' ' '\n' | grep -E '^(docs/docs|examples)/.*\.ipynb$' || true)
if [ -n "$notebooks" ]; then
cd ./langgraph
cd ./libs/langgraph
for notebook in $notebooks; do
absolute_path="$GITHUB_WORKSPACE/$notebook"
yarn notebook_validate "$absolute_path"
Expand Down
2 changes: 1 addition & 1 deletion examples/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}

0 comments on commit a612b4f

Please sign in to comment.