Update .gitea/workflows/test.yml

This commit is contained in:
2025-07-09 15:59:37 +02:00
parent 4e43681052
commit 0549ea7e72
+8 -5
View File
@@ -33,12 +33,12 @@ jobs:
sudo mv allure-2.27.0 /opt/allure
sudo ln -s /opt/allure/bin/allure /usr/local/bin/allure
- name: Install coverage and reporting tools
- name: Install coverage and reporting tools
run: |
python -m venv "$HOME/venv"
source "$HOME/venv/bin/activate"
pip install --upgrade pip
pip install coverage pytest-html pytest-cov
pip install coverage pytest-html pytest-cov pytest-md-report # 👈 ajout
echo "VIRTUAL_ENV=$HOME/venv" >> $GITHUB_ENV
- name: Run tests and generate reports
@@ -51,18 +51,21 @@ jobs:
pixi run pytest --cov=slic \
--cov-report=xml:ci-reports/coverage/coverage.xml \
--cov-report=html:ci-reports/coverage/ \
--alluredir=allure-results || true
--alluredir=allure-results \
--md-report \
--md-report-output=ci-reports/markdown/test-full.md || true # 👈 ligne ajoutée
allure generate allure-results -o ci-reports/allure --clean || true
coverage report --format=markdown > ci-reports/markdown/coverage-summary.md
python generate_test_summary.py
python generate_test_summary.py # (laisse ton script custom)
- name: Commit and push reports in markdown format
run: |
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 add ci-reports/markdown/coverage-summary.md ci-reports/markdown/test-summary.md ci-reports/markdown/test-full.md # 👈 ajout ici
git commit -m "Update test summaries" || echo "Nothing to commit"
git push https://ci-token:${{ secrets.CI_TOKEN }}@gitea.psi.ch/tligui_y/slic.git HEAD:utils_testing
env: