Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,18 @@ jobs:
id: analyze-code
run: |
pylint_score=$(pylint $(git ls-files '*.py')| grep 'rated at' | awk '{print $7}' | cut -d'/' -f1)
echo "PYLINT_SCORE=$pylint_score" >> $GITHUB_ENV
echo "score=$pylint_score" >> "$GITHUB_OUTPUT"

- name: Check Pylint score
run: |
score=${{ steps.analyze-code.outputs.score }}
echo "Pylint score is $score"

if (( $(echo "$PYLINT_SCORE < 9.5" | bc -l) )); then
echo "Failure: Pylint score is below 9.5 (project score: $PYLINT_SCORE)."
echo "Failure: Pylint score is below 9.5 (project score: $score)."
exit 1
else
echo "Success: Pylint score is above 9.5 (project score: $PYLINT_SCORE)."
echo "Success: Pylint score is above 9.5 (project score: $score)."
fi
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

code-format-check:
Expand Down
Loading