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 - name: run unittests commands: - coverage run --source='.' manage.py test --noinput --parallel - name: run flake8 commands: - flake8 - name: run pylint commands: - pylint --rcfile=.pylintrc -- **/*.py - name: deploy on test commands: - echo 'todo: deploy on test' when: branch: [ develop ] - name: check for version bump commands: - echo 'todo: check for version bump' when: branch: [ main ] - name: deploy on production commands: - echo 'todo: push to pypi' - echo 'todo: deploy from pypi on production' when: branch: [ main ]