Skip to content

Commit

Permalink
fix ci get matrix corner issue (#242)
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <[email protected]>
  • Loading branch information
chensuyue authored Jun 25, 2024
1 parent 553ce8f commit 9d826f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reuse-get-test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
changed_files="$(git diff --name-only ${base_commit} ${merged_commit} | \
grep 'comps/' | grep -vE '*.md|*.txt|comps/cores')" || true
services=$(printf '%s\n' "${changed_files[@]}" | cut -d'/' -f2 | grep -vE '*.py' | sort -u)
services=$(printf '%s\n' "${changed_files[@]}" | cut -d'/' -f2 | grep -vE '*.py' | sort -u) || true
path_level_1=("asr" "tts")
path_level_3=("llms/summarization" "llms/text-generation" "dataprep/redis" "retrievers/langchain")
run_matrix="{\"include\":["
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
# add test for test scripts update
changed_files="$(git diff --name-only ${base_commit} ${merged_commit} | \
grep 'tests/' | grep -vE '*.md|*.txt|tests/cores')" || true
test_files=$(printf '%s\n' "${changed_files[@]}" | grep -E "tests/test_*" | grep -E "*.sh")
test_files=$(printf '%s\n' "${changed_files[@]}" | grep -E "tests/test_*" | grep -E "*.sh") || true
for test_file in ${test_files}; do
service_script=$(echo $test_file | cut -d'/' -f2 | cut -d'.' -f1 | cut -c6-)
service=$(echo $service_script | tr '_' '/')
Expand Down

0 comments on commit 9d826f1

Please sign in to comment.