Trigger system tests when the system check file changes (#18590)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Zanie Blue
2026-03-20 11:22:01 -05:00
committed by GitHub
parent 04bbd6a6ab
commit cedae1aa42
+2 -1
View File
@@ -89,6 +89,7 @@ jobs:
[[ "$file" == ".github/workflows/bench.yml" ]] && bench_workflow_changed=1
[[ "$file" == ".github/workflows/test-integration.yml" || "$file" =~ ^test/integration/ || "$file" == "scripts/check_registry.py" || "$file" == "scripts/check_cache_compat.py" || "$file" == "scripts/registries-test.py" ]] && integration_changed=1
[[ "$file" == ".github/workflows/test-system.yml" ]] && system_workflow_changed=1
[[ "$file" == "scripts/check_system_python.py" || "$file" == "scripts/check_embedded_python.py" ]] && system_test_changed=1
[[ "$file" =~ ^docs/ || "$file" =~ ^mkdocs.*\.yml$ || "$file" =~ \.md$ || "$file" =~ ^bin/ || "$file" =~ ^assets/ ]] && continue
any_code_changed=1
done <<< "$(git diff --name-only "${BASE_SHA:-origin/main}...HEAD")"
@@ -112,7 +113,7 @@ jobs:
[[ ! $has_skip_label ]] && test_smoke=1
[[ ! $has_skip_label ]] && test_ecosystem=1
[[ $has_integration_label || $has_extended_label || $on_main_branch || $integration_changed ]] && test_integration=1
[[ $has_system_label || $has_extended_label || $on_main_branch || $system_workflow_changed ]] && test_system=1
[[ $has_system_label || $has_extended_label || $on_main_branch || $system_workflow_changed || $system_test_changed ]] && test_system=1
[[ $has_macos_label || $has_extended_label || $on_main_branch || $build_release_binaries ]] && test_macos=1
[[ ! $has_build_skip_label && ! $has_build_skip_docker_label && ($docker_build_changed || $has_build_push_docker_label) ]] && build_docker=1
[[ $has_build_push_docker_label ]] && push_docker=1