[cicd] refactor woodpecker workflows
This commit is contained in:
parent
27de382acb
commit
ab4fc8ecd8
3 changed files with 20 additions and 10 deletions
|
@ -1,10 +0,0 @@
|
|||
pipeline:
|
||||
test:
|
||||
image: fnndsc/python-poetry
|
||||
commands:
|
||||
- poetry install
|
||||
- poetry run pytest -vvv
|
||||
pylint:
|
||||
image: cytopia/pylint
|
||||
commands:
|
||||
- find . -type f -name "*.py" | xargs pylint --disable=E0401
|
14
.woodpecker/lint.yml
Normal file
14
.woodpecker/lint.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
pipeline:
|
||||
pylint:
|
||||
image: fnndsc/python-poetry
|
||||
commands:
|
||||
- poetry add pylint
|
||||
- poetry install
|
||||
- find . -type f -name "*.py" | xargs poetry run pylint --disable=E0401
|
||||
flake8:
|
||||
image: fnndsc/python-poetry
|
||||
commands:
|
||||
- poetry add flake8
|
||||
- poetry install
|
||||
- poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
- poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
6
.woodpecker/test.yml
Normal file
6
.woodpecker/test.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
pipeline:
|
||||
test:
|
||||
image: fnndsc/python-poetry
|
||||
commands:
|
||||
- poetry install
|
||||
- poetry run pytest -vvv
|
Loading…
Reference in a new issue