-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix multiline slack report for weekly CI
- Loading branch information
1 parent
e7d6c60
commit 5a6eabd
Showing
2 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version="3.8" | ||
file_name="failed_tests_slack_list_38.txt" | ||
|
||
if [ -z "$GITHUB_ENV" ]; then | ||
GITHUB_ENV=$(mktemp) | ||
fi | ||
|
||
{ | ||
echo "SLACK_BODY<<EOF" | ||
echo "Build status ([Action URL](Action url)):" | ||
echo " - Linux: skipped" | ||
echo " - macOS (intel): skipped" | ||
} >> $GITHUB_ENV | ||
|
||
LINUX_PYTHON_VERSIONS="38" | ||
|
||
for linux_python_version in ${LINUX_PYTHON_VERSIONS}; do | ||
file_name="failed_tests_slack_list_${linux_python_version}.txt" | ||
|
||
if [ -f ${file_name} ]; then | ||
FAILED_TESTS_LIST=$(cat "${file_name}") | ||
|
||
{ | ||
echo "" | ||
echo "" | ||
echo "Linux failed tests (Python ${linux_python_version}):" | ||
echo "${FAILED_TESTS_LIST}" | ||
} >> $GITHUB_ENV | ||
fi | ||
done | ||
|
||
echo "EOF" >> $GITHUB_ENV | ||
|
||
|
||
cat $GITHUB_ENV | ||
rm $GITHUB_ENV |