@@ -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')"
|
||||
|
||||
Reference in New Issue
Block a user