-
Notifications
You must be signed in to change notification settings - Fork 269
Expand file tree
/
Copy pathexample-python.yaml
More file actions
54 lines (54 loc) · 1.87 KB
/
example-python.yaml
File metadata and controls
54 lines (54 loc) · 1.87 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
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
- 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: |
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step curl -Os https://cli.codecov.io/latest/linux/codecov curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
./codecov --verbose upload-process -t $CODECOV_TOKEN
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>