2022-05-21 21:59:10 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
2022-05-21 22:00:41 +00:00
|
|
|
name: pytest
|
2022-05-21 21:59:10 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
2022-05-21 22:00:41 +00:00
|
|
|
- name: pytest
|
2022-05-21 21:59:10 +00:00
|
|
|
image: python:3-alpine
|
|
|
|
commands:
|
|
|
|
- "pip install -r requirements.txt"
|
2022-05-21 22:26:38 +00:00
|
|
|
- "pytest --cov=app --cov-report xml:coverage.xml tests/"
|
2022-05-21 21:59:10 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|