From 5af2dc6be2ed8a2c0129689672cc834bb8e9721d Mon Sep 17 00:00:00 2001 From: Hsiaoming Yang Date: Fri, 28 Jul 2023 15:35:06 +0900 Subject: [PATCH] chore: add sonar scan --- .github/workflows/test.yml | 6 ++++++ docs/conf.py | 1 - sonar-project.properties | 9 +++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 sonar-project.properties diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 557a575..4664dde 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,3 +67,9 @@ jobs: files: ./coverage.xml flags: unittests name: GitHub + + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/docs/conf.py b/docs/conf.py index 97aadac..819732c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,7 +11,6 @@ html_title = "joserfc" -# templates_path = ["_templates"] html_static_path = ["_static"] html_css_files = [ 'custom.css', diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..b7d61b7 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,9 @@ +sonar.projectKey=authlib_joserfc +sonar.organization=authlib + +sonar.sources=src +sonar.sourceEncoding=UTF-8 +sonar.test.inclusions=tests/**/test_*.py + +sonar.python.version=3.8, 3.9, 3.10, 3.11 +sonar.python.coverage.reportPaths=coverage.xml