File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 44 push :
55 workflow_dispatch :
66 inputs :
7- environment :
8- description : ' Define env name '
7+ score :
8+ description : ' Pylint Score '
99 required : true
10- default : ' prod '
10+ default : ' 10 '
1111jobs :
1212 build :
1313
2828 pytest -v --junit-xml=tests.xml --cov-report=xml --cov=app/core
2929 - name : Execute Lint
3030 run : |
31- pylint app/core/*.py --fail-under=3
32- sed -i -e 's|<source>.*<\/source>|<source>app/core<\/source>|g' coverage.xml
33- echo "Env: ${{ github.event.inputs.environment }}"
34- - name : SonarQube Scanner
35- uses : sonarsource/sonarqube-scan-action@master
36- env :
37- # SonarQube server URL
38- SONAR_HOST_URL : http://54.146.193.237:9000
39- # Login or authentication token of a SonarQube user
40- SONAR_TOKEN : ${{ secrets.SONARQUBE_TOKEN }}
31+ pylint app/core/*.py --fail-under=${{ github.event.inputs.score }}
32+ sed -i -e 's|<source>.*<\/source>|<source>app/core<\/source>|g' coverage.xml
33+
You can’t perform that action at this time.
0 commit comments