Skip to content

Commit df8faa6

Browse files
committed
fix: add -${GITHUB_JOB} for CI
1 parent 8edc91f commit df8faa6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ jobs:
7575
# Tell Smart Tests about the build you are producing and testing
7676
smart-tests record build --build ${GITHUB_RUN_ID}
7777
78-
smart-tests record session --build ${GITHUB_RUN_ID} --session ${GITHUB_RUN_NUMBER} --flavor os=${{ matrix.os }} --flavor python=$(cat .python-version)
78+
smart-tests record session --build ${GITHUB_RUN_ID} --session ${GITHUB_RUN_NUMBER}-${GITHUB_JOB} --flavor os=${{ matrix.os }} --flavor python=$(cat .python-version)
7979
8080
# Find 25% of the relevant tests to run for this change
81-
find tests -name test_*.py | grep -v tests/data | smart-tests subset file --build ${GITHUB_RUN_ID} --session ${GITHUB_RUN_NUMBER} --target 25% --rest smart-tests-remainder.txt > subset.txt
81+
find tests -name test_*.py | grep -v tests/data | smart-tests subset file --build ${GITHUB_RUN_ID} --session ${GITHUB_RUN_NUMBER}-${GITHUB_JOB} --target 25% --rest smart-tests-remainder.txt > subset.txt
8282
8383
function record() {
8484
# Record test results
85-
SMART_TESTS_SLACK_NOTIFICATION=true smart-tests record test file --build ${GITHUB_RUN_ID} --session ${GITHUB_RUN_NUMBER} test-results/*.xml
85+
SMART_TESTS_SLACK_NOTIFICATION=true smart-tests record test file --build ${GITHUB_RUN_ID} --session ${GITHUB_RUN_NUMBER}-${GITHUB_JOB} test-results/*.xml
8686
}
8787
8888
trap record EXIT

0 commit comments

Comments
 (0)