Skip to content

Commit 69c6e85

Browse files
authored
Add coverage reports (#10)
1 parent 97e7ac3 commit 69c6e85

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,12 @@ jobs:
2121
- name: Test
2222
run: |
2323
make test
24+
- name: Archive coverage report
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: coverage-report
28+
path: .coverage-reports/coverage.xml
29+
- name: SonarQube Scan
30+
uses: SonarSource/[email protected]
31+
env:
32+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ __pycache__/
99
# Distribution / packaging
1010
.Python
1111
build/
12+
.coverage*
13+
.coverage-reports/
1214
coverage-reports/
1315
develop-eggs/
1416
dist/

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ include = [
3030
]
3131

3232
[tool.coverage.html]
33-
directory = "coverage-reports/html"
33+
directory = ".coverage-reports/html"
3434

3535
[tool.coverage.xml]
36-
output = "coverage-reports/coverage.xml"
36+
output = ".coverage-reports/coverage.xml"

sonar-project.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sonar.projectKey=proveskit_PROVES_CircuitPython_RV3028
2+
sonar.organization=proves-kit
3+
4+
sonar.sources=rv3028/
5+
sonar.tests=tests/
6+
7+
sonar.python.coverage.reportPaths=.coverage-reports/coverage.xml

0 commit comments

Comments
 (0)