diff --git a/.github/workflows/pr-test-npu.yml b/.github/workflows/pr-test-npu.yml index 6464945f6..c676a973a 100644 --- a/.github/workflows/pr-test-npu.yml +++ b/.github/workflows/pr-test-npu.yml @@ -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"