Skip to content

Commit 4165c7d

Browse files
authored
optimize ci test scope (#662)
Signed-off-by: chensuyue <[email protected]>
1 parent 42cde68 commit 4165c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scripts/get_test_matrix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function find_test_1() {
1616
local n=$2
1717
local all_service=$3
1818

19-
common_file_change=$(printf '%s\n' "${changed_files[@]}"| grep ${pre_service} | cut -d'/' -f$n | grep -E '*.py' | grep -v '__init__.py|setup.py' | sort -u) || true
19+
common_file_change=$(printf '%s\n' "${changed_files[@]}"| grep ${pre_service} | cut -d'/' -f$n | grep -E '*.py' | grep -vE '__init__.py|version.py' | sort -u) || true
2020
if [ "$common_file_change" ] || [ "$all_service" = "true" ]; then
2121
# if common files changed, run all services
2222
services=$(ls ${pre_service} | cut -d'/' -f$n | grep -vE '*.md|*.py|*.sh|*.yaml|*.yml|*.pdf' | sort -u) || true

0 commit comments

Comments
 (0)