Skip to content

Commit c00cc82

Browse files
Update pylint.yml
1 parent 371b42d commit c00cc82

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/pylint.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
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'
1111
jobs:
1212
build:
1313

@@ -28,13 +28,6 @@ jobs:
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+

0 commit comments

Comments
 (0)