[cicd] refactor woodpecker workflows
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
SouthFox 2023-06-13 15:21:04 +08:00
parent 27de382acb
commit ab4fc8ecd8
3 changed files with 20 additions and 10 deletions

View file

@ -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
View 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
View file

@ -0,0 +1,6 @@
pipeline:
test:
image: fnndsc/python-poetry
commands:
- poetry install
- poetry run pytest -vvv