Skip to content

Commit f3aecde

Browse files
committed
add score threshold to pylint
1 parent f25fb3c commit f3aecde

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/pylint.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,10 @@ jobs:
2222
- name: Analysing the code with pylint
2323
run: |
2424
pylint $(git ls-files '*.py') pylint-report.txt || true
25-
26-
- name: Analyze Pylint Score
27-
id: pylint-score
28-
run: |
2925
SCORE=$(tail -n 2 pylint-report.txt | grep -oE "[0-9]+\.[0-9]+(?=/10)")
3026
echo "Pylint score: $SCORE"
3127
echo "score=$SCORE" >> $GITHUB_ENV
32-
- name: Check Pylint score
33-
run: |
34-
if (( $(echo "$SCORE < 8.0" | bc -l) )); then
35-
echo "Pylint score $SCORE is below the passing threshold of 8.0"
36-
exit 1
37-
fi
38-
env:
39-
SCORE: ${{ env.score }}
28+
if (( $(echo "$SCORE < 8.0" | bc -l) )); then
29+
echo "Pylint score $SCORE is below the passing threshold of 8.0"
30+
exit 1
31+
fi

0 commit comments

Comments
 (0)