24 lines
578 B
YAML
24 lines
578 B
YAML
kind: pipeline
|
|
type: exec
|
|
name: default
|
|
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: install deps
|
|
commands:
|
|
- dnf install -y python3 python3-pip
|
|
- pip3 install -U Django coverage flake8 pylint django-coverage-plugin pylint-django django-bootstrap4
|
|
- name: run unittests
|
|
commands:
|
|
- coverage run --source='.' manage.py test --noinput --parallel
|
|
- name: run flake8
|
|
commands:
|
|
- flake8 --max-line-length=120
|
|
- name: run pylint
|
|
commands:
|
|
- DJANGO_SETTINGS_MODULE=nmgfitness.settings pylint --rcfile=.pylintrc -- **/*.py
|