Update .gitea/workflows/test.yml
Run Pytest with Allure and Coverage Reports / tests (push) Successful in 57s

This commit is contained in:
2025-07-08 16:40:45 +02:00
parent 3e59bc253b
commit e2bec193bd
+7 -18
View File
@@ -68,29 +68,18 @@ jobs:
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
- name: Rename index.html with timestamp
- name: Prepare page report
run: |
ts=$(date +%s)
echo "Report timestamp: $ts"
mv ci-reports/allure/index.html ci-reports/allure/report_${ts}.html
echo $ts > ci-reports/allure/latest.txt
echo "<meta http-equiv=\"refresh\" content=\"0; url=report_${ts}.html\">" > ci-reports/allure/index.html
- name: Create redirect index.html
- name: Link to report
run: |
ts=$(cat ci-reports/allure/latest.txt)
cat <<EOF > ci-reports/allure/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=report_${ts}.html">
<title>Redirecting to latest report</title>
</head>
<body>
<p>Redirecting to latest report...</p>
</body>
</html>
EOF
base_url="https://yaspsi.github.io/pytest-report-render"
echo "=== Report URL for website ==="
echo "🔗 ${base_url}/ci-reports/allure/report_${ts}.html"
echo "=============================="