Skip to content

Commit

Permalink
linter now outputs warning but doesn't fail
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Jan 14, 2025
1 parent 20144bc commit cd47d90
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,11 @@ jobs:
run: pip install -r requirements.txt

- name: Run pylint
run: pylint stackhpc_openstack_tests/*.py
run: |
set +e # disabling exit on non-zero error code so can output warnings without failing
pylint stackhpc_openstack_tests/*.py
EXIT_CODE=$?
set -e
if [[ $(($EXIT_CODE & 3)) > 0 ]] then #bitwise check for pylint exit coeds which indicate errors
exit 1
fi

0 comments on commit cd47d90

Please sign in to comment.