Skip to content

Commit 32e1809

Browse files
committed
linter now outputs warning but doesn't fail
1 parent 20144bc commit 32e1809

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/pr-tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,12 @@ jobs:
3737
run: pip install -r requirements.txt
3838

3939
- name: Run pylint
40-
run: pylint stackhpc_openstack_tests/*.py
40+
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

Comments
 (0)