Configure CI to run tests
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Benjamin Renard 2022-12-17 00:23:15 +01:00
parent 91f949b6a2
commit d51a1c777f
2 changed files with 13 additions and 1 deletions

12
.woodpecker.yml Normal file
View file

@ -0,0 +1,12 @@
pipeline:
test-pylint:
group: test
image: pipelinecomponents/pylint
commands:
- pylint check_pip_upgrade
test-flake8:
group: test
image: pipelinecomponents/flake8
commands:
- flake8 check_pip_upgrade

View file

@ -86,7 +86,7 @@ try:
for package in json.loads(output) for package in json.loads(output)
if not options.packages or package['name'] in options.packages if not options.packages or package['name'] in options.packages
) )
except Exception as exc: except Exception as exc: # pylint: disable=broad-except
print('UNKNOWN - Exception occured parsing pip output') print('UNKNOWN - Exception occured parsing pip output')
traceback.print_exc(exc) traceback.print_exc(exc)
sys.exit(STATUS['UNKNOWN']) sys.exit(STATUS['UNKNOWN'])