Skip to content

Commit e19f904

Browse files
committed
ci: dev
1 parent e1fd92c commit e19f904

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

.github/workflows/ci-test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ jobs:
3939
- name: Run tests
4040
run: make test
4141

42-
- name: SonarQube Scan
43-
uses: SonarSource/sonarqube-scan-action@8c71dc039c2dd71d3821e89a2b58ecc7fee6ced9 # v5.3.0
44-
env:
45-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
46-
4742
- name: Upload coverage reports to Codecov
4843
uses: codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
4944
with:

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ test:
3232
poetry run pytest leetcode/ \
3333
-v --cov=leetcode --cov=leetcode_py \
3434
--cov-report=term-missing \
35+
--cov-report=xml \
3536
--ignore=leetcode/_template \
3637
--ignore=leetcode/__pycache__
3738

sonar-project.properties

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SonarQube Configuration
2+
sonar.projectKey=leetcode-py
3+
sonar.projectName=LeetCode Python Solutions
4+
sonar.projectVersion=1.0
5+
6+
# Source code settings
7+
sonar.sources=leetcode,leetcode_py
8+
sonar.tests=leetcode
9+
sonar.test.inclusions=**/tests.py
10+
sonar.exclusions=**/conftest.py,**/_template/**,**/__pycache__/**,**/.venv/**
11+
12+
# Python specific settings
13+
sonar.python.version=3.13
14+
15+
# Coverage settings (if you generate coverage reports)
16+
sonar.python.coverage.reportPaths=coverage.xml
17+
18+
# Code quality settings
19+
sonar.qualitygate.wait=true

0 commit comments

Comments
 (0)