tg_rss_bot/.drone.yml
Alexey Skobkin 83a3c0b262
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
#20 Pipelines merged. Deploy pipeline commented for now. Trying to check only changed code.
2022-05-31 01:03:32 +03:00

50 lines
1,004 B
YAML

# https://docs.drone.io/pipeline/overview/
# https://docs.drone.io/pipeline/configuration/
kind: pipeline
type: docker
name: app-check
steps:
- name: build-deps
image: 'python:3.10-alpine'
commands:
- python -m venv .venv
- source ./.venv/bin/activate
- pip install -r requirements.txt
when:
event:
include:
- pull_request
- name: pylama
image: 'python:3.10-alpine'
commands:
#- python -m venv .venv
- source ./.venv/bin/activate
- 'pip install pylama pylama\[all\] > /dev/null'
- 'pylama $(git diff --name-only --diff-filter=ACMRTUXB ${DRONE_TARGET_BRANCH} | grep -E "(.py$)")'
when:
event:
include:
- pull_request
branch:
exclude: master
#---
#kind: pipeline
#type: docker
#name: deploy
#
#steps:
# - name: deploy
# image: alpine
# commands:
# - 'echo "TODO: implement deploy"'
# when:
# branch: master
#
#depends_on:
# - build
# - code-audit