unit-pytest.yaml
1 apiVersion: tekton.dev/v1beta1 2 kind: Task 3 metadata: 4 name: unit-pytest 5 labels: 6 app.kubernetes.io/version: "0.1.0" 7 annotations: 8 tekton.dev/pipelines.minVersion: "0.12.1" 9 tekton.dev/displayName: "#B4mad Racing pytest-based unit tests" 10 spec: 11 steps: 12 - image: quay.io/fedora/python-310@sha256:430446ef4ea844de1b49e691a9f5da20b2194d6420463dd21e762bacbf713b66 13 name: run-e2e-test-in-venv 14 workingDir: $(workspaces.source.path) 15 command: 16 - components/paddock/scripts/pytest.sh 17 env: 18 - name: SECRET_KEY 19 value: abcd1ac34873c54e158d38e7f1283977f202abcd 20 workspaces: 21 - name: source 22 mountPath: /workspace/src 23 description: >- 24 The workspace containing the source code which needs to be released.