Skip to content

Commit

Permalink
fix coverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Jun 12, 2024
1 parent ce03bfa commit a45c96c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sonar-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
python3 -m pip install .[dev]
install-nplinker-deps --run-on-github
- name: Run unit tests with coverage
run: pytest --cov=nplinker --cov-report=xml tests/unit
run: pytest --cov=nplinker --cov-report=xml --cov-report=term tests/unit
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
Expand Down
6 changes: 5 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ sonar.projectKey=NPLinker_nplinker
sonar.organization=nplinker
sonar.projectName=nplinker
sonar.host.url=https://sonarcloud.io
sonar.sources=src/nplinker/

sonar.sources=src
sonar.tests=tests/unit
sonar.language=py

sonar.links.homepage=https://github.com/NPLinker/nplinker
sonar.links.scm=https://github.com/NPLinker/nplinker
sonar.links.issue=https://github.com/NPLinker/nplinker/issues
sonar.links.ci=https://github.com/NPLinker/nplinker/actions

sonar.python.coverage.reportPaths=coverage.xml
sonar.python.version=3.10

0 comments on commit a45c96c

Please sign in to comment.