Skip to content

Commit d4d25ce

Browse files
Merge pull request #904 from IntelPython/avoid-duplicate-comments
Annotate array-API conformance messages with dpctl version data
2 parents a7dde5a + 0984d56 commit d4d25ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,20 +583,21 @@ jobs:
583583
- name: Set Github environment variables
584584
shell: bash -l {0}
585585
run: |
586+
export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
586587
FILE=/home/runner/work/.report.json
587588
if test -f "$FILE"; then
588589
PASSED_TESTS=$(jq '.summary | .passed // 0' $FILE)
589590
FAILED_TESTS=$(jq '.summary | .failed // 0' $FILE)
590591
SKIPPED_TESTS=$(jq '.summary | .skipped // 0' $FILE)
591-
MESSAGE="Array API standard conformance tests ran successfully.
592+
MESSAGE="Array API standard conformance tests for dpctl=$PACKAGE_VERSION ran successfully.
592593
Passed: $PASSED_TESTS
593594
Failed: $FAILED_TESTS
594595
Skipped: $SKIPPED_TESTS"
595596
echo "MESSAGE<<EOF" >> $GITHUB_ENV
596597
echo "$MESSAGE" >> $GITHUB_ENV
597598
echo "EOF" >> $GITHUB_ENV
598599
else
599-
MESSAGE=$'Array API standard conformance tests failed to run.'
600+
MESSAGE="Array API standard conformance tests failed to run for dpctl=$PACKAGE_VERSION."
600601
echo "MESSAGE=$MESSAGE" >> $GITHUB_ENV
601602
fi
602603
- name: Post result to PR

0 commit comments

Comments
 (0)