Update .gitea/workflows/test.yml
Run Pytest with HTML and XML Test Reports / tests (push) Successful in 26s
Run Pytest with HTML and XML Test Reports / tests (push) Successful in 26s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
name: Run Pytest with HTML and XML Test Reports
|
||||
|
||||
on:
|
||||
on:
|
||||
push:
|
||||
branches: [testing_json]
|
||||
pull_request:
|
||||
@@ -159,19 +159,18 @@ jobs:
|
||||
echo "📚 Cloning gitea-pages branch..."
|
||||
git clone --branch gitea-pages https://ci-token:${CI_TOKEN}@gitea.psi.ch/tligui_y/slic.git gitea-pages
|
||||
|
||||
echo "🗑 Cleaning old allure report..."
|
||||
rm -rf gitea-pages/allure || true
|
||||
echo "🗑 Cleaning old report files..."
|
||||
rm -rf gitea-pages/* || true
|
||||
|
||||
echo "📂 Copying new allure report..."
|
||||
cp -r ci-reports/allure gitea-pages/
|
||||
echo "📂 Copying new allure report files to root of gitea-pages..."
|
||||
cp -r ci-reports/allure/* gitea-pages/
|
||||
|
||||
cd gitea-pages
|
||||
git config user.name "ci-bot"
|
||||
git config user.email "ci-bot@example.com"
|
||||
|
||||
git add allure
|
||||
git add .
|
||||
git commit -m "Update Allure report for run $GITHUB_RUN_NUMBER" || echo "⚠️ Nothing to commit"
|
||||
|
||||
echo "🚀 Pushing to gitea-pages branch..."
|
||||
git push origin gitea-pages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user