From 83ee4cee325c22314f6977b6be100e674bc9491b Mon Sep 17 00:00:00 2001 From: ldericher <40151420+ldericher@users.noreply.github.com> Date: Thu, 14 Oct 2021 19:37:41 +0200 Subject: [PATCH] CI pytests --- .drone.yml | 7 +++++++ Dockerfile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index ecd6889..a0177de 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,13 @@ kind: pipeline name: default steps: +- name: pytest + image: python:3.6-alpine3.13 + commands: + - wget -O- https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - + - source $HOME/.poetry/env && poetry install + - source $HOME/.poetry/env && poetry run pytest + - name: docker image: plugins/docker settings: diff --git a/Dockerfile b/Dockerfile index dd4db5d..5a33c84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,6 @@ RUN set -ex; \ COPY . /usr/src/kiwi_scp RUN set -ex; \ - pip3 --use-feature=in-tree-build install /usr/src/kiwi_scp + pip3 --no-cache-dir --use-feature=in-tree-build install /usr/src/kiwi_scp ENTRYPOINT ["kiwi"]