Update .gitea/workflows/test.yml
Run Pytest with Allure and Coverage Reports / tests (push) Successful in 54s
Run Pytest with Allure and Coverage Reports / tests (push) Successful in 54s
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user