--- kind: pipeline type: kubernetes name: pytest platform: os: linux arch: amd64 steps: - name: pytest image: python:3-alpine commands: - "pip install -r requirements.txt" - "pytest --cov=app --cov-report xml:coverage.xml tests/" when: event: - push - pull_request