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

This commit is contained in:
2025-07-08 14:51:09 +02:00
parent 08eb313987
commit a027c72046
+8 -8
View File
@@ -62,14 +62,14 @@ jobs:
# Generate test summary
python -c "import glob, json
passed = failed = 0
for f in glob.glob('allure-results/*-result.json'):
with open(f) as j:
data = json.load(j)
if data.get('status') == 'passed': passed += 1
else: failed += 1
with open('ci-reports/markdown/test-summary.md', 'w') as f:
f.write(f'# Test Summary\\n\\n- Total tests: {passed+failed}\\n- Passed: {passed}\\n- Failed: {failed}')"
passed = failed = 0
for f in glob.glob('allure-results/*-result.json'):
with open(f) as j:
data = json.load(j)
if data.get('status') == 'passed': passed += 1
else: failed += 1
with open('ci-reports/markdown/test-summary.md', 'w') as f:
f.write(f'# Test Summary\\n\\n- Total tests: {passed+failed}\\n- Passed: {passed}\\n- Failed: {failed}')"
- name: Combine reports into single Markdown
run: |