Skip to content

Commit

Permalink
optimize ci test scope (#662)
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <[email protected]>
  • Loading branch information
chensuyue authored Sep 11, 2024
1 parent 42cde68 commit 4165c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/get_test_matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function find_test_1() {
local n=$2
local all_service=$3

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
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
if [ "$common_file_change" ] || [ "$all_service" = "true" ]; then
# if common files changed, run all services
services=$(ls ${pre_service} | cut -d'/' -f$n | grep -vE '*.md|*.py|*.sh|*.yaml|*.yml|*.pdf' | sort -u) || true
Expand Down

0 comments on commit 4165c7d

Please sign in to comment.