update pr-test ci (#3376)

This commit is contained in:
Yineng Zhang
2025-02-07 21:08:35 +08:00
committed by GitHub
parent f287037673
commit 5da3d21c8b

View File

@@ -4,12 +4,14 @@ on:
push:
branches: [ main ]
paths:
- "python/pyproject.toml"
- "python/sglang/**"
- "test/**"
- "docs/**"
pull_request:
branches: [ main ]
paths:
- "python/pyproject.toml"
- "python/sglang/**"
- "test/**"
- "docs/**"
@@ -47,10 +49,12 @@ jobs:
- 'python/sglang/**'
test:
- 'test/**'
pyproject:
- 'python/pyproject.toml'
- name: Set run_tests output
id: set_run_tests
run: |
if [ "${{ steps.filter.outputs.sglang }}" == "true" ] || [ "${{ steps.filter.outputs.test }}" == "true" ]; then
if [ "${{ steps.filter.outputs.sglang }}" == "true" ] || [ "${{ steps.filter.outputs.test }}" == "true" ] || [ "${{ steps.filter.outputs.pyproject }}" == "true" ]; then
echo "run_tests=true" >> $GITHUB_OUTPUT
else
echo "run_tests=false" >> $GITHUB_OUTPUT