Update action.yml
This commit is contained in:
+2
-4
@@ -87,8 +87,6 @@ runs:
|
||||
echo "🚀 Running tests and generating reports..." >> $LOG_FILE
|
||||
git clone -q https://gitea.psi.ch/tligui_y/test-ci.git ./temp-ci
|
||||
cp temp-ci/conftest.py ./
|
||||
|
||||
mkdir -p ${{ inputs.report-dir }}/{markdown}
|
||||
|
||||
set +e
|
||||
|
||||
@@ -114,12 +112,12 @@ runs:
|
||||
|
||||
echo "" >> $LOG_FILE
|
||||
echo "📈 Generating coverage summary..." >> $LOG_FILE
|
||||
coverage report --format=markdown >> markdown/coverage-summary.md 2>> output/coverage-error.log && {
|
||||
coverage report --format=markdown >> markdown/coverage-summary.md 2>> outputs/coverage-error.log && {
|
||||
echo "✅ Coverage summary generated" >> $LOG_FILE
|
||||
} || {
|
||||
echo "❌ Coverage summary generation failed" >> $LOG_FILE
|
||||
echo "🪵 Extracting coverage error:" >> $LOG_FILE
|
||||
cat output/coverage-error.log >> $LOG_FILE
|
||||
cat outputs/coverage-error.log >> $LOG_FILE
|
||||
echo "Exit Code: 1" >> $LOG_FILE
|
||||
exit 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user