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

This commit is contained in:
2025-07-09 09:50:26 +02:00
parent c78287553f
commit 1f98d52f77
+8 -11
View File
@@ -1,6 +1,6 @@
name: Run Pytest with Allure and Coverage Reports
on:
on:
push:
branches: [utils_testing]
pull_request:
@@ -13,13 +13,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup SSH Deploy Key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.CI_SECRET_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -t ed25519 gitea.psi.ch >> ~/.ssh/known_hosts
- name: Install Pixi and dependencies
run: |
curl -fsSL https://pixi.sh/install.sh | bash
@@ -70,8 +63,10 @@ jobs:
git config user.name "ci-bot"
git config user.email "ci-bot@example.com"
git add ci-reports/markdown/coverage-summary.md ci-reports/markdown/test-summary.md
git commit -m "Update test summaries" || echo "Nothing to commit"
git push git@gitea.psi.ch:tligui_y/slic.git HEAD:utils_testing
git commit -m "Update test summaries [skip ci]" || echo "Nothing to commit"
git push https://ci-token:${{ secrets.CI_TOKEN }}@gitea.psi.ch/tligui_y/slic.git HEAD:utils_testing
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
- name: Link to report
run: |
@@ -83,6 +78,8 @@ jobs:
echo "${base_url}/report_${ts}.html"
echo "=============================="
- name: Deploy Allure report to GitHub
run: |
git clone https://x-access-token:${{ secrets.RENDER_GITHUB_TOKEN }}@github.com/Yaspsi/pytest-report-render.git deploy-repo
@@ -93,4 +90,4 @@ jobs:
git config user.email "ci-bot@example.com"
git add .
git commit -m "Deploy Allure report" || echo "Nothing to commit"
git push origin main
git push origin main