Skip to content

Commit 5d05231

Browse files
committed
sonarcloud.yml updated, .coveragerc and sonar-project.properties deleted
1 parent ba104d3 commit 5d05231

File tree

3 files changed

+13
-23
lines changed

3 files changed

+13
-23
lines changed

.coveragerc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/sonarcloud.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ jobs:
2222
with:
2323
python-version: '3.11'
2424

25-
- name: Install uv and deps
25+
- name: Install uv and dependencies
2626
run: |
2727
pip install uv
2828
uv sync --frozen
2929
uv pip install pytest pytest-django coverage
3030
31-
- name: Run tests and build coverage.xml (relative paths)
31+
- name: Run tests and build coverage.xml
3232
env:
3333
DJANGO_SETTINGS_MODULE: task_manager.settings
3434
SECRET_KEY: test-secret-key
@@ -42,10 +42,20 @@ jobs:
4242
mkdir -p reports
4343
uv run coverage erase
4444
uv run coverage run -m pytest --ds=task_manager.settings --junitxml=reports/junit.xml
45-
uv run coverage xml -i -o coverage.xml # учитывает .coveragerc (relative_files + paths)
45+
uv run coverage xml -i -o coverage.xml
4646
4747
- name: SonarCloud Scan
4848
uses: SonarSource/sonarcloud-github-action@v2
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
52+
with:
53+
args: >
54+
-Dsonar.projectKey=olyapka84_python-project-52
55+
-Dsonar.organization=olyapka84
56+
-Dsonar.python.version=3.11
57+
-Dsonar.sources=task_manager
58+
-Dsonar.tests=tests
59+
-Dsonar.exclusions=**/migrations/**,**/__pycache__/**,**/.venv/**,**/venv/**,manage.py
60+
-Dsonar.python.coverage.reportPaths=coverage.xml
61+
-Dsonar.python.xunit.reportPath=reports/junit.xml

sonar-project.properties

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)