Skip to content

Commit 09e1e59

Browse files
committed
Add sonarqube
1 parent 533b9b8 commit 09e1e59

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/run-test.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Test
22

33
on:
44
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
59

610
jobs:
711
pytest:
@@ -63,3 +67,15 @@ jobs:
6367
flags: unittests
6468
fail_ci_if_error: true
6569
verbose: true
70+
sonarcloud:
71+
name: SonarCloud
72+
runs-on: ubuntu-latest
73+
steps:
74+
- uses: actions/checkout@v3
75+
with:
76+
fetch-depth: 0
77+
- name: SonarCloud Scan
78+
uses: SonarSource/sonarcloud-github-action@master
79+
env:
80+
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
81+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

pydynamodb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
if TYPE_CHECKING:
77
from .connection import Connection
88

9-
__version__: str = "0.6.1"
9+
__version__: str = "0.6.2"
1010

1111
# Globals https://www.python.org/dev/peps/pep-0249/#globals
1212
apilevel: str = "2.0"

sonar-project.properties

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sonar.projectKey=passren_PyDynamoDB
2+
sonar.organization=passren
3+
4+
# This is the name and version displayed in the SonarCloud UI.
5+
sonar.projectName=PyDynamoDB
6+
sonar.projectVersion=0.6.*
7+
8+
9+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
10+
sonar.sources=./pydynamodb
11+
12+
# Encoding of the source code. Default is default system encoding
13+
sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)