Add ci #1

Merged
mwalbeck merged 7 commits from add-ci into master 2021-01-21 21:19:36 +00:00
Showing only changes of commit 55f78b8d04 - Show all commits

View File

@ -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: