[NPU] [CI] Fix multimodal_gen filter leakage and add daily scheduled run (#39411)

Co-authored-by: ronnie_zheng <zl19940307@163.com>
This commit is contained in:
Elizaveta Martirosian
2026-09-15 14:03:11 +03:00
committed by GitHub
co-authored by ronnie_zheng
parent 17ba2c2e7c
commit fb01a079a6
+9 -5
View File
@@ -3,6 +3,8 @@ name: PR Test (NPU)
on:
push:
branches: [ main ]
schedule:
- cron: '0 12 * * *' # Run daily at 12:00 UTC
pull_request:
workflow_dispatch:
workflow_call:
@@ -39,11 +41,11 @@ jobs:
- name: Determine run mode
id: run-mode
run: |
# Run all tests for workflow_call (when ref input is provided)
# Run all tests for scheduled runs and workflow_call (when ref input is provided)
# Note: github.event_name is inherited from caller, so we detect workflow_call by checking inputs.ref
if [[ "${{ inputs.run_all_tests }}" == "true" ]]; then
if [[ "${{ github.event_name }}" == "schedule" || "${{ inputs.run_all_tests }}" == "true" ]]; then
echo "run_all_tests=true" >> $GITHUB_OUTPUT
echo "Run mode: ALL TESTS (run_all_tests=${{ inputs.run_all_tests }})"
echo "Run mode: ALL TESTS (schedule=${{ github.event_name == 'schedule' }}, run_all_tests=${{ inputs.run_all_tests }})"
else
echo "run_all_tests=false" >> $GITHUB_OUTPUT
echo "Run mode: FILTERED (triggered by ${{ github.event_name }})"
@@ -56,7 +58,9 @@ jobs:
with:
filters: |
main_package:
- "python/sglang/!(multimodal_gen)/**/!(*.md)"
- "python/sglang/**/!(*.md)"
- "!python/sglang/multimodal_gen/**"
- "!python/sglang/kernels/ops/diffusion/**"
- "python/pyproject_npu.toml"
- "scripts/ci/npu/npu_ci_install_dependency.sh"
- "test/registered/npu/**"
@@ -64,7 +68,7 @@ jobs:
- ".github/workflows/pr-test-npu.yml"
multimodal_gen:
- "python/sglang/multimodal_gen/**/!(*.md|*.ipynb)"
- "python/sglang/kernels/ops/diffusion/triton/npu_fallback.py"
- "python/sglang/kernels/ops/diffusion/**"
- "python/sglang/srt/**"
- "python/pyproject_npu.toml"
- "scripts/ci/npu/npu_ci_install_dependency.sh"