Skip to content

Commit

Permalink
Merge branch 'main' into release/v3.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang authored May 8, 2024
2 parents 322f788 + 8522b4e commit e1f61f0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,19 @@ jobs:
mkdir -p test_result
docker compose -f docker/docker-compose_tests.yml up --abort-on-container-exit
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
continue-on-error: true
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# export the coverage report to the comment!
- name: Add coverage report to PR comment
continue-on-error: true
uses: MishaKav/[email protected]
uses: MishaKav/[email protected]
with:
pytest-xml-coverage-path: test_result/coverage.xml
junitxml-path: test_result/pytest.xml

python_lint_check:
runs-on: ubuntu-20.04
timeout-minutes: 3
Expand Down
7 changes: 7 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
sonar.organization=tier4
sonar.projectKey=tier4_ota-client
sonar.python.coverage.reportPaths=test_result/coverage.xml
sonar.sources=./otaclient
sonar.tests=tests
sonar.sourceEncoding=UTF-8
sonar.python.version=3.8,3.9,3.10,3.11

0 comments on commit e1f61f0

Please sign in to comment.