Skip to content

Commit 0162ca4

Browse files
bhushan23quic-bhushans
authored andcommitted
Run Torch, ONNX, TF tests only if common or specific code is touched (#4964)
Signed-off-by: Bhushan Sonawane <quic_bhushans@quicinc.com> Co-authored-by: Bhushan Sonawane <quic_bhushans@quicinc.com>
1 parent 9f33ce1 commit 0162ca4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/pipeline.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
docker-tag:
1212
name: Check if 'latest' tag could be used (no build docker images)
1313
runs-on: ubuntu-latest
14+
needs: pre-commit-check
1415
outputs:
1516
tag: ${{ steps.tag.outputs.tag }}
1617
steps:
@@ -47,13 +48,13 @@ jobs:
4748
TF_TEST_REQUIRED='false'
4849
4950
for file in ${ALL_CHANGED_FILES}; do
50-
if [[ $file == $AIMET_TORCH_SRC_CODE ]]; then
51+
if [[ "$file" == "$AIMET_TORCH_SRC_CODE"* ]]; then
5152
TORCH_TEST_REQUIRED='true'
52-
elif [[ $file == $AIMET_ONNX_SRC_CODE ]]; then
53+
elif [[ "$file" == "$AIMET_ONNX_SRC_CODE"* ]]; then
5354
ONNX_TEST_REQUIRED='true'
54-
elif [[ $file == $AIMET_TF_SRC_CODE ]]; then
55+
elif [[ "$file" == "$AIMET_TF_SRC_CODE"* ]]; then
5556
TF_TEST_REQUIRED='true'
56-
elif [[ $file == $DOC_SRC_CODE ]]; then
57+
elif [[ "$file" == "$DOC_SRC_CODE"* ]]; then
5758
: # Documentation change doesn't require running unit tests; only doc rebuild is needed
5859
else
5960
TORCH_TEST_REQUIRED='true'

0 commit comments

Comments
 (0)