Update .gitea/workflows/test.yml
Run Pytest with Allure and Coverage Reports / tests (push) Failing after 56s
Run Pytest with Allure and Coverage Reports / deploy (push) Has been skipped

This commit is contained in:
2025-07-09 20:54:43 +02:00
parent 6f8ae85bb0
commit 6368e8d1fa
+19 -22
View File
@@ -46,35 +46,32 @@ jobs:
export PATH="$HOME/.pixi/bin:$PATH"
source "$VIRTUAL_ENV/bin/activate"
mkdir -p ci-reports/{allure,coverage,markdown,junit}
# Création des dossiers de sortie
mkdir -p ci-reports/{allure,coverage,markdown,junit,test-reports}
# Génération des rapports
# Exécution unique des tests avec tous les rapports
pixi run pytest . \
--cov=slic \
--cov-report=xml:ci-reports/coverage/coverage.xml \
--cov-report=html:ci-reports/coverage/
--alluredir=allure-results || true
pixi run pytest tests \
--md-report \
--md-report-output=ci-reports/markdown/test-full.md \
--md-report-flavor=gfm \
--md-report-verbose=2 || true
pixi run pytest tests \
--json-report \
--json-report-file=ci-reports/markdown/pytest-report.json \
--junit-xml=test-reports/results.xml \
--capture=tee-sys \
--show-capture=all || true
--cov=slic \
--cov-report=xml:ci-reports/coverage/coverage.xml \
--cov-report=html:ci-reports/coverage/ \
--alluredir=allure-results \
--junitxml=ci-reports/junit/junit-report.xml \
--md-report \
--md-report-output=ci-reports/markdown/test-full.md \
--md-report-flavor=gfm \
--md-report-verbose=2 \
--json-report \
--json-report-file=ci-reports/markdown/pytest-report.json \
--capture=tee-sys \
--show-capture=all || true
# Génération des rapports Allure et Coverage
allure generate allure-results -o ci-reports/allure --clean || true
coverage report --format=markdown > ci-reports/markdown/coverage-summary.md
# Génération des rapports supplémentaires
python generate_test_summary.py
python xlm_to_md.py --input test-reports --output TEST-REPORT.md
python xml_to_md.py --input ci-reports/junit --output ci-reports/markdown/TEST-REPORT.md
- name: Commit and push reports
run: |