Coverage added
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Failing after 2m13s

This commit is contained in:
2025-12-02 13:02:27 +01:00
parent 5330493c85
commit 8ea0937ea4
2 changed files with 17 additions and 1 deletions

View File

@@ -17,6 +17,20 @@ jobs:
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run tests with coverage
run: |
coverage run --source='.' manage.py test
coverage xml
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
@@ -49,4 +63,5 @@ jobs:
-Dsonar.projectKey=${{ github.event.repository.name }} \
-Dsonar.sources=. \
-Dsonar.host.url=${SONAR_HOST_URL} \
-Dsonar.token=${SONAR_TOKEN}
-Dsonar.token=${SONAR_TOKEN} \
-Dsonar.python.coverage.reportPaths=coverage.xml