[cicd] update test workflows
This commit is contained in:
parent
0f21b621c0
commit
35a771ac99
4 changed files with 4 additions and 0 deletions
1
.github/workflows/pylint.yml
vendored
1
.github/workflows/pylint.yml
vendored
|
@ -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')
|
||||
|
|
1
.github/workflows/test.yaml
vendored
1
.github/workflows/test.yaml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -3,4 +3,5 @@ pipeline:
|
|||
image: fnndsc/python-poetry
|
||||
commands:
|
||||
- poetry install
|
||||
- mv demo/config.py.simple demo/config.py
|
||||
- poetry run pytest -vvv
|
||||
|
|
Loading…
Reference in a new issue