[cicd] update test workflows
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
SouthFox 2023-07-08 16:38:33 +08:00
parent 0f21b621c0
commit 35a771ac99
4 changed files with 4 additions and 0 deletions

View file

@ -27,4 +27,5 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Analysing the code with pylint
run: |
mv demo/config.py.simple demo/config.py
pylint --disable=E0401 $(git ls-files '*.py')

View file

@ -30,4 +30,5 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
mv demo/config.py.simple demo/config.py
pytest -vvv

View file

@ -4,6 +4,7 @@ pipeline:
commands:
- poetry add pylint
- poetry install
- mv demo/config.py.simple demo/config.py
- find . -type f -name "*.py" | xargs poetry run pylint --disable=E0401
flake8:
image: fnndsc/python-poetry

View file

@ -3,4 +3,5 @@ pipeline:
image: fnndsc/python-poetry
commands:
- poetry install
- mv demo/config.py.simple demo/config.py
- poetry run pytest -vvv