We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20144bc commit 32e1809Copy full SHA for 32e1809
.github/workflows/pr-tests.yml
@@ -37,4 +37,12 @@ jobs:
37
run: pip install -r requirements.txt
38
39
- name: Run pylint
40
- run: pylint stackhpc_openstack_tests/*.py
+ run: |
41
+ set +e # disabling exit on non-zero error code so can output warnings without failing
42
+ pylint stackhpc_openstack_tests/*.py
43
+ EXIT_CODE=$?
44
+ set -e
45
+ if [[ $(($EXIT_CODE & 3)) > 0 ]] #bitwise check for pylint exit codes which indicate errors (01 and 10) https://pylint.readthedocs.io/en/latest/user_guide/usage/run.html#exit-codes
46
+ then
47
+ exit 1
48
+ fi
0 commit comments