From ab4fc8ecd8e9b09299a2f7468f05de93955d624c Mon Sep 17 00:00:00 2001 From: SouthFox Date: Tue, 13 Jun 2023 15:21:04 +0800 Subject: [PATCH] [cicd] refactor woodpecker workflows --- .woodpecker.yml | 10 ---------- .woodpecker/lint.yml | 14 ++++++++++++++ .woodpecker/test.yml | 6 ++++++ 3 files changed, 20 insertions(+), 10 deletions(-) delete mode 100644 .woodpecker.yml create mode 100644 .woodpecker/lint.yml create mode 100644 .woodpecker/test.yml diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 4421bc3..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -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 diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..0507c32 --- /dev/null +++ b/.woodpecker/lint.yml @@ -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 diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml new file mode 100644 index 0000000..f98d60b --- /dev/null +++ b/.woodpecker/test.yml @@ -0,0 +1,6 @@ +pipeline: + test: + image: fnndsc/python-poetry + commands: + - poetry install + - poetry run pytest -vvv