Add ci #1
30
.drone.yml
30
.drone.yml
@ -4,15 +4,35 @@ type: docker
|
||||
name: python-3-8-tests
|
||||
|
||||
steps:
|
||||
- name: check formatting
|
||||
image: python:3.8-slim-buster
|
||||
- name: run tests
|
||||
image: mwalbeck/python-poetry:1.1-3.8-alpine
|
||||
environment:
|
||||
APP_DIR: determine_docker_tags
|
||||
POETRY_VIRTUALENVS_CREATE: "false"
|
||||
commands:
|
||||
- pip install poetry
|
||||
- poetry install
|
||||
- black --check determine_docker_tags
|
||||
- flake8 determine_docker_tags
|
||||
- black --check $${APP}
|
||||
- flake8 $${APP}
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: python-3-9-tests
|
||||
|
||||
steps:
|
||||
- name: run tests
|
||||
image: mwalbeck/python-poetry:1.1-3.9-alpine
|
||||
environment:
|
||||
APP_DIR: determine_docker_tags
|
||||
POETRY_VIRTUALENVS_CREATE: "false"
|
||||
commands:
|
||||
- poetry install
|
||||
- black --check $${APP}
|
||||
- flake8 $${APP}
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
Loading…
Reference in New Issue
Block a user