[CI] fix: notebook ci may not working (#18417)

This commit is contained in:
shuwenn
2026-02-07 22:26:35 -08:00
committed by GitHub
parent d71ccd8860
commit f600965b0e
+13 -2
View File
@@ -3,10 +3,12 @@ name: Execute Notebooks
on: on:
pull_request: pull_request:
branches: [ main ] branches: [ main ]
types: [synchronize, labeled] types: [opened, synchronize, reopened, labeled]
paths: paths:
- "python/sglang/**" - "python/sglang/**"
- "docs/**" - "docs/**"
- "!python/sglang/**/*.md"
- "!docs/**/*.md"
workflow_dispatch: workflow_dispatch:
@@ -18,9 +20,16 @@ env:
SGLANG_IS_IN_CI: true SGLANG_IS_IN_CI: true
jobs: jobs:
call-gate:
# Align with PR Test: fail fast if PR doesn't have run-ci label.
# This makes /tag-and-rerun-ci work by rerunning this failed workflow.
uses: ./.github/workflows/pr-gate.yml
secrets: inherit
run-all-notebooks: run-all-notebooks:
needs: [call-gate]
runs-on: 1-gpu-runner runs-on: 1-gpu-runner
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-ci') if: github.event_name != 'pull_request' || needs.call-gate.result == 'success'
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -46,9 +55,11 @@ jobs:
notebook-finish: notebook-finish:
needs: [ needs: [
call-gate,
run-all-notebooks run-all-notebooks
] ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: always() && needs.run-all-notebooks.result != 'skipped'
steps: steps:
- name: Check all dependent job statuses - name: Check all dependent job statuses
run: | run: |