Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-prommersberger authored Jun 15, 2024
1 parent 383625e commit 4bbe1b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:

- name: Run pylint
run: |
if [ -f .pylintrc ]; then
pylint --rcfile=.pylintrc **/*.py
else
pylint **/*.py
fi
pylint_output=$(mktemp)
pylint **/*.py > "$pylint_output" 2>&1
cat "$pylint_output"
# Fail the job if pylint found any issues
grep -q "Your code has been rated at" "$pylint_output" || exit 1

0 comments on commit 4bbe1b3

Please sign in to comment.