diff --git a/.drone.yml b/.drone.yml index a1a0f92..eec94f7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,7 @@ type: docker name: default steps: -- name: qa +- name: qa_main image: python:3.8-alpine commands: - apk add --no-cache gcc g++ musl-dev python3-dev @@ -12,3 +12,18 @@ steps: - pipenv install --dev - pipenv run flake8 - pipenv run python -m unittest discover ki + when: + branch: + - main + +- name: qa_pr + image: python:3.8-alpine + commands: + - apk add --no-cache gcc g++ musl-dev python3-dev + - pip3 install pipenv + - pipenv install --dev + - pipenv run flake8 + - pipenv run python -m unittest discover ki + when: + event: + - pull_request diff --git a/drone.yml b/drone.yml deleted file mode 100644 index bf9988c..0000000 --- a/drone.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -kind: pipeline -type: docker -name: default - -steps: -- name: qa - image: python3.8-alpine - commands: - - apk add --no-cache gcc g++ musl-dev python3-dev - - pip3 install pipenv - - pipenv install --system - - flake8 - - python -m unittest discover ki