-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy pathexample-python.yaml
More file actions
62 lines (61 loc) · 1.89 KB
/
example-python.yaml
File metadata and controls
62 lines (61 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
pipeline:
name: example-python
identifier: examplepython
projectIdentifier: default_project
orgIdentifier: default
tags: {}
stages:
- stage:
name: Build
identifier: Build
type: CI
spec:
cloneCodebase: true
execution:
steps:
- step:
type: Run
name: Install deps
identifier: Install_Deps
spec:
shell: Sh
command: |
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install "git+https://github.com/codecov/codecov-cli@cy/harness_ci#subdirectory=codecov-cli"
- step:
type: Run
name: Pytest
identifier: Pytest
spec:
shell: Sh
command: pytest --cov app
- step:
type: Run
name: printenv
identifier: Printenv
spec:
shell: Sh
command: printenv
- step:
type: Run
name: Upload to Codecov
identifier: Codecov
spec:
shell: Sh
command: |
codecov-cli --verbose upload-process -t $CODECOV_TOKEN -F harness --slug codecov/example-python
envVariables:
CODECOV_TOKEN: <+secrets.getValue("CODECOV_TOKEN")>
platform:
os: Linux
arch: Amd64
runtime:
type: Cloud
spec: {}
properties:
ci:
codebase:
connectorRef: account.Github_OAuth_1778001905690
repoName: codecov/example-python
build: <+input>