Skip to content

Commit cd47d90

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

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pr-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,11 @@ 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 ]] then #bitwise check for pylint exit coeds which indicate errors
46+
exit 1
47+
fi

0 commit comments

Comments
 (0)