update pr-test ci (#3376)
This commit is contained in:
6
.github/workflows/pr-test.yml
vendored
6
.github/workflows/pr-test.yml
vendored
@@ -4,12 +4,14 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
paths:
|
||||||
|
- "python/pyproject.toml"
|
||||||
- "python/sglang/**"
|
- "python/sglang/**"
|
||||||
- "test/**"
|
- "test/**"
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
paths:
|
||||||
|
- "python/pyproject.toml"
|
||||||
- "python/sglang/**"
|
- "python/sglang/**"
|
||||||
- "test/**"
|
- "test/**"
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
@@ -47,10 +49,12 @@ jobs:
|
|||||||
- 'python/sglang/**'
|
- 'python/sglang/**'
|
||||||
test:
|
test:
|
||||||
- 'test/**'
|
- 'test/**'
|
||||||
|
pyproject:
|
||||||
|
- 'python/pyproject.toml'
|
||||||
- name: Set run_tests output
|
- name: Set run_tests output
|
||||||
id: set_run_tests
|
id: set_run_tests
|
||||||
run: |
|
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
|
echo "run_tests=true" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "run_tests=false" >> $GITHUB_OUTPUT
|
echo "run_tests=false" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user