Run tests based on labels (#10456)

This commit is contained in:
Lianmin Zheng
2025-09-15 00:29:20 -07:00
committed by GitHub
parent 76becc1dbc
commit 50dc0c1e9c
15 changed files with 200 additions and 301 deletions

View File

@@ -6,6 +6,7 @@ on:
paths:
- "python/sglang/**"
- "docs/**"
types: [synchronize, labeled]
workflow_dispatch:
@@ -17,7 +18,7 @@ concurrency:
jobs:
run-all-notebooks:
runs-on: 1-gpu-runner
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-ci')
steps:
- name: Checkout code
uses: actions/checkout@v4