From 0549ea7e72dd159bfb1f3c231bb48ab5d56fafc2 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Wed, 9 Jul 2025 15:59:37 +0200 Subject: [PATCH] Update .gitea/workflows/test.yml --- .gitea/workflows/test.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 3079e701..daa5a02b 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -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: