coverage improvmeents
Python CI / test (push) Failing after 41s

This commit is contained in:
2025-06-07 18:01:31 +02:00
parent dd2c98d4e0
commit 98cbe296a5
9 changed files with 275 additions and 80 deletions
+4 -2
View File
@@ -48,7 +48,7 @@ jobs:
continue-on-error: true
run: |
# Run tests with coverage
python -m pytest tests/ -v --cov=pyWebLayout --cov-report=term-missing --cov-report=json --cov-report=html
python -m pytest tests/ -v --cov=pyWebLayout --cov-report=term-missing --cov-report=json --cov-report=html --cov-report=xml
- name: Check documentation coverage
id: docs
@@ -102,6 +102,7 @@ jobs:
with open('coverage-summary.txt', 'w') as f:
f.write(f'{total_coverage}%')
print(f'Test Coverage: {total_coverage}%')
print(f'Lines Covered: {coverage_data[\'totals\'][\'covered_lines\']}/{coverage_data[\'totals\'][\'num_statements\']}')
else:
print('No coverage data found')
"
@@ -137,6 +138,7 @@ jobs:
coverage-docs.svg
htmlcov/
coverage.json
coverage.xml
coverage-summary.txt
- name: Safety check - prevent infinite loops
@@ -175,4 +177,4 @@ jobs:
- name: Test package installation
run: |
# Test that the package can be imported
python -c "import pyWebLayout; print('Package imported successfully')"
python -c "import pyWebLayout; print('Package imported successfully')"