Update action.yml
This commit is contained in:
+11
-5
@@ -302,18 +302,24 @@ runs:
|
||||
|
||||
chmod +x custom_cmd.sh
|
||||
export CMD
|
||||
./custom_cmd.sh
|
||||
./custom_cmd.sh 2>&1 | tee outputs/pytest-output.log
|
||||
|
||||
echo "▶️ END"
|
||||
|
||||
awk '/=+ test session starts =+/{flag=1} /-+ JSON report -+/{flag=0} flag' outputs/test-ci.log > outputs/raw-test-output.log
|
||||
awk '/=+ short test summary info =+/,/=+.* in .*s =+/' outputs/test-ci.log > outputs/short-test-output.log
|
||||
awk '/=+ test session starts =+/{flag=1} /-+ JSON report -+/{flag=0} flag' outputs/pytest-output.log > outputs/raw-test-output.log
|
||||
awk '/=+ short test summary info =+/,/=+.* in .*s =+/' outputs/test-ci.log > outputs/pytest-output.log
|
||||
|
||||
set -e
|
||||
|
||||
echo "" >> $LOG_FILE
|
||||
echo "📋 Short test summary:" >> $LOG_FILE
|
||||
cat outputs/short-test-output.log >> $LOG_FILE || true
|
||||
echo "📋 Short test summary:" >> "$LOG_FILE"
|
||||
if [ -s outputs/short-test-output.log ]; then
|
||||
cat outputs/short-test-output.log >> "$LOG_FILE"
|
||||
else
|
||||
echo "✅ All tests passed, nothing to report." >> "$LOG_FILE"
|
||||
fi
|
||||
|
||||
cat outputs/pytest-output.log
|
||||
|
||||
mkdir -p markdown
|
||||
|
||||
|
||||
Reference in New Issue
Block a user