Skip to content

Commit

Permalink
Workflow fixed test with decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiannis128 committed Nov 8, 2024
1 parent 1cd0aa3 commit 2a1c639
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ jobs:
- name: Pylint on esbmc_ai
run: hatch run pylint esbmc_ai || true

# Check if pass, the test command only takes integers so truncate decimals
- 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 "${SCORE%.*}" -ge 9
test:
name: PyTest
Expand Down

0 comments on commit 2a1c639

Please sign in to comment.