Skip to content

Commit

Permalink
Updated pylint workflow to fail only with scores under 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiannis128 committed Nov 8, 2024
1 parent 27d3d15 commit 1cd0aa3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,15 @@ jobs:
~/.local/share/hatch
key: ${{ runner.os }}-hatch-${{ env.HATCH_DEP_HASH }}

# Don't fail just output, since we want the score to be above 9 not 10.0
# Don’t let the Perfect be the Enemy of the Good
- name: Pylint on esbmc_ai
run: hatch run pylint esbmc_ai
run: hatch run pylint esbmc_ai || true

- name: Check If Pass (90%)
run: |
SCORE="$(sed -n '$s/[^0-9]*\([0-9.]*\).*/\1/p' <<< "$(hatch run pylint esbmc_ai)")"
test "$SCORE" -gt 9
test:
name: PyTest
Expand Down

0 comments on commit 1cd0aa3

Please sign in to comment.