Skip to content

Commit 1c0f9be

Browse files
!
1 parent ec52249 commit 1c0f9be

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/Test-CI-daily-notebooks-applications.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,20 @@ jobs:
7575
"| " + .name + " | " + (.message | @html | split("\n") | .[0]) + " |"
7676
'
7777
}>>"$GITHUB_STEP_SUMMARY"
78-
echo FAILING_TESTS=$(cat $GITHUB_STEP_SUMMARY) >> $GITHUB_ENV
78+
echo FAILING_TESTS=$(
79+
yq -o json -I 0 -p xml '
80+
.testsuites[].testcase[] | select(.failure // .error) |
81+
select((.failure // .error)["+@message"] | test("^((AssertionError: Qmod file)|(AssertionError: Found uncommitted Qmod)).*")) |
82+
{
83+
"name": (.["+@classname"] + "::" + .["+@name"]),
84+
"message": (.failure // .error)["+@message"]
85+
}
86+
' ./pytest-results/*.xml | \
87+
jq -r -s '
88+
sort_by(.name) | .[] |
89+
"* " + .name + ": " + (.message | @html | split("\n") | .[0]) + "\n"
90+
'
91+
) >> $GITHUB_ENV
7992
8093
- name: Send JSON to slack workflow
8194
id: slack

0 commit comments

Comments
 (0)