CI pytests
This commit is contained in:
parent
8d688b28b1
commit
83ee4cee32
2 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue