chore: Update CI workflow and .gitignore for coverage reporting
Some checks failed
Integration Tests / integration-tests (push) Failing after 29s
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / build-and-push (push) Failing after 32s
Service Adapters (Python FastAPI) / test (3.11) (push) Failing after 53s
Service Adapters (Python FastAPI) / test (3.12) (push) Failing after 58s
Service Adapters (Python FastAPI) / test (3.13) (push) Failing after 52s
Service Adapters (Python FastAPI) / build (push) Has been skipped
Some checks failed
Integration Tests / integration-tests (push) Failing after 29s
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / build-and-push (push) Failing after 32s
Service Adapters (Python FastAPI) / test (3.11) (push) Failing after 53s
Service Adapters (Python FastAPI) / test (3.12) (push) Failing after 58s
Service Adapters (Python FastAPI) / test (3.13) (push) Failing after 52s
Service Adapters (Python FastAPI) / build (push) Has been skipped
### Summary of Changes - Removed Python version 3.14 from the CI workflow matrix for service-adapters. - Consolidated pytest commands in the CI workflow to streamline test execution and coverage reporting. - Added coverage report files (`.coverage`, `coverage.xml`, `junit.xml`) to the `.gitignore` to prevent tracking of generated reports. ### Expected Results - Enhanced CI process efficiency and maintained a clean repository by ignoring unnecessary coverage files.
This commit is contained in:
@@ -47,7 +47,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.11, 3.12, 3.13, 3.14]
|
python-version: [3.11, 3.12, 3.13]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -111,8 +111,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
pytest --cov=. --cov-report=xml --cov-report=html --cov-report=term-missing --junitxml=tests/reports/junit.xml
|
pytest --cov=. --cov-report=xml --cov-report=html --cov-report=term-missing --junitxml=tests/reports/junit.xml --cov-fail-under=80
|
||||||
pytest --cov=. --cov-report=xml --cov-report=html --cov-report=term-missing --cov-fail-under=80
|
|
||||||
|
|
||||||
- name: Send results to SonarQube
|
- name: Send results to SonarQube
|
||||||
run: |
|
run: |
|
||||||
@@ -125,7 +124,11 @@ jobs:
|
|||||||
--sonar-host-url=${{ secrets.SONAR_HOST_URL }} \
|
--sonar-host-url=${{ secrets.SONAR_HOST_URL }} \
|
||||||
--sonar-token=${{ secrets.SONAR_TOKEN }} \
|
--sonar-token=${{ secrets.SONAR_TOKEN }} \
|
||||||
--sonar-project-key=labfusion-service-adapters \
|
--sonar-project-key=labfusion-service-adapters \
|
||||||
--sonar-project-name="LabFusion Service Adapters"
|
--sonar-project-name="LabFusion Service Adapters" \
|
||||||
|
--sonar-coverage-report-paths=coverage.xml \
|
||||||
|
--sonar-python-coverage-reports=coverage.xml \
|
||||||
|
--sonar-sources=. \
|
||||||
|
--sonar-exclusions=tests/**,htmlcov/**,__pycache__/**,*.pyc
|
||||||
|
|
||||||
|
|
||||||
- name: Test results summary
|
- name: Test results summary
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -92,3 +92,6 @@ venv.bak/
|
|||||||
|
|
||||||
bandit-report.json
|
bandit-report.json
|
||||||
safety-report.json
|
safety-report.json
|
||||||
|
.coverage
|
||||||
|
coverage.xml
|
||||||
|
junit.xml
|
||||||
Binary file not shown.
Reference in New Issue
Block a user