tg_rss_bot/.drone.yml
Alexey Skobkin de4491fa02
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
#20 Pipelines merged. Deploy pipeline removed for now. Pylama now checks only changed files.
2022-05-31 02:20:19 +03:00

33 lines
807 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-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-alpine'
commands:
- apk update > /dev/null && apk add git > /dev/null
#- python -m venv .venv
- source ./.venv/bin/activate
- 'pip install pylama pylama\[all\] > /dev/null'
- 'git --no-pager diff --name-only origin/${DRONE_TARGET_BRANCH} | xargs pylama'
when:
event:
include:
- pull_request
branch:
exclude: master