CI pytests

This commit is contained in:
Jörn-Michael Miehe 2021-10-14 19:37:41 +02:00
parent 8d688b28b1
commit 83ee4cee32
2 changed files with 8 additions and 1 deletions

View file

@ -3,6 +3,13 @@ kind: pipeline
name: default name: default
steps: 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 - name: docker
image: plugins/docker image: plugins/docker
settings: settings:

View file

@ -12,6 +12,6 @@ RUN set -ex; \
COPY . /usr/src/kiwi_scp COPY . /usr/src/kiwi_scp
RUN set -ex; \ 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"] ENTRYPOINT ["kiwi"]