Skip to content

Commit

Permalink
PR-checker / finetune pylint printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
JanneKiiskila committed Dec 19, 2023
1 parent bdfd61d commit 06c0fde
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pr-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ jobs:
- name: Run pylint (findings may not increase)
run: |
sudo apt-get install pylint
pylint --version
pylint --exit-zero --persistent=n tests/ izuma_systest_lib/ >pylint.log
echo "### pylint" >>$SUMMARY_FILE
pylintstats=$(scripts-internal/ci/more-lines-checker.sh ${{ github.event.repository.default_branch }} ${{ github.ref_name }} "pylint --exit-zero --persistent=n systemtest-library test_cases" pylint | tail -n3)
pylint --version >>$SUMMARY_FILE
pylint --exit-zero --persistent=n tests/ izuma_systest_lib/ >pylint.log
pylintstats=$(scripts-internal/ci/more-lines-checker.sh ${{ github.event.repository.default_branch }} ${{ github.ref_name }} "pylint --exit-zero systemtest-library test_cases" pylint | tail -n3)
echo "$pylintstats" >>$SUMMARY_FILE
pylintscore=$(tail -2 pylint.log |head -1)
pylintscore=$(tail -3 pylint.log |head -1)
echo "$pylintscore" >>$SUMMARY_FILE
echo "$pylintstats"
echo "$pylintstats" >>$SUMMARY_FILE
if [[ $pylintstats == *"Oh no"* ]]; then
# More findings than earlier
echo "TEST_FAIL=true" >> $GITHUB_ENV
Expand Down

0 comments on commit 06c0fde

Please sign in to comment.