Skip to content

Commit a36a066

Browse files
chore: Add harness yml
1 parent ce0de1a commit a36a066

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.harness/pipeline.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# this file is used when repo in Harness is configured to be Remote instead of Inline
2+
3+
pipeline:
4+
name: First Pipeline
5+
identifier: First_Pipeline
6+
projectIdentifier: default_project
7+
orgIdentifier: default
8+
tags: {}
9+
properties:
10+
ci:
11+
codebase:
12+
connectorRef: GitHub_Connector
13+
repoName: example-python
14+
build: <+input>
15+
stages:
16+
- stage:
17+
name: Test
18+
identifier: build
19+
description: ""
20+
type: CI
21+
spec:
22+
cloneCodebase: true
23+
caching:
24+
enabled: true
25+
override: true
26+
paths: []
27+
buildIntelligence:
28+
enabled: true
29+
platform:
30+
os: Linux
31+
arch: Amd64
32+
runtime:
33+
type: Cloud
34+
spec: {}
35+
execution:
36+
steps:
37+
- step:
38+
type: Run
39+
name: Run flow
40+
identifier: Run_1
41+
spec:
42+
shell: Sh
43+
command: |-
44+
echo "Using remote config version"
45+
python3 -m pip install --upgrade "pip==26.1"
46+
python3 -m pip install -r requirements.txt
47+
python3 -m pip install -v git+https://github.com/codecov/codecov-cli.git@cy/harness_ci#subdirectory=codecov-cli
48+
pytest --cov app --junitxml=junit.xml -o junit_family=legacy
49+
codecov-cli --verbose upload-process --fail-on-error -t f7dfc3ad-4fa8-4e62-ab9f-4a33e2894f46
50+
description: Install requirements, install codecov-cli from branch, run tests, then upload

0 commit comments

Comments
 (0)