-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy pathexample-python.yaml
More file actions
53 lines (53 loc) · 1.58 KB
/
example-python.yaml
File metadata and controls
53 lines (53 loc) · 1.58 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
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 -r requirements.txt
pip install -v git+https://github.com/codecov/codecov-cli.git@cy/harness_ci#subdirectory=codecov-cli
- step:
type: Run
name: Pytest
identifier: Pytest
spec:
shell: Sh
command: pytest --cov app
- step:
type: Run
name: Upload to Codecov
identifier: Codecov
spec:
shell: Sh
command: |
codecov-cli --verbose upload-process -t $CODECOV_TOKEN -f harness
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>