From a612b4f81af2d421caf1890a94e654521d64ddf2 Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Wed, 28 Aug 2024 11:18:00 -0700 Subject: [PATCH] ci[patch]: fix validate notebook ci check (#406) --- .github/workflows/validate-new-notebooks.yml | 11 +++-------- examples/quickstart.ipynb | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/validate-new-notebooks.yml b/.github/workflows/validate-new-notebooks.yml index f551a178..09b07f6d 100644 --- a/.github/workflows/validate-new-notebooks.yml +++ b/.github/workflows/validate-new-notebooks.yml @@ -12,14 +12,10 @@ concurrency: on: push: - branches: - - main + branches: ["main"] pull_request: - branches: - - main paths: - - 'docs/docs/**' - - 'examples/**' + - '**.ipynb' - 'deno.json' workflow_dispatch: @@ -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: @@ -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" diff --git a/examples/quickstart.ipynb b/examples/quickstart.ipynb index c8f28d84..879c0223 100644 --- a/examples/quickstart.ipynb +++ b/examples/quickstart.ipynb @@ -282,4 +282,4 @@ }, "nbformat": 4, "nbformat_minor": 2 -} \ No newline at end of file +}