Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .harness/input-set-default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: Git Input Set
identifier: Git_Input_Set
orgIdentifier: default
projectIdentifier: default_project
pipeline:
identifier: Git_Controlled_Pipeline
properties:
ci:
codebase:
build:
type: branch
spec:
branch: <+trigger.branch>
48 changes: 48 additions & 0 deletions .harness/pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
pipeline:
name: Git Controlled Pipeline
identifier: Git_Controlled_Pipeline
projectIdentifier: default_project
orgIdentifier: default
tags: {}
properties:
ci:
codebase:
connectorRef: GitHub_Connector
repoName: example-python
build: <+input>
stages:
- stage:
name: Test
identifier: build
description: ""
type: CI
spec:
cloneCodebase: true
caching:
enabled: true
override: true
paths: []
buildIntelligence:
enabled: true
platform:
os: Linux
arch: Amd64
runtime:
type: Cloud
spec: {}
execution:
steps:
- step:
type: Run
name: Run flow
identifier: Run_1
spec:
shell: Sh
command: |-
echo "Using remote config version"
python3 -m pip install --upgrade "pip==26.1"
python3 -m pip install -r requirements.txt
python3 -m pip install -v git+https://github.com/codecov/codecov-cli.git@cy/harness_ci#subdirectory=codecov-cli
pytest --cov app --junitxml=junit.xml -o junit_family=legacy
codecov-cli --verbose upload-process --fail-on-error -t f7dfc3ad-4fa8-4e62-ab9f-4a33e2894f46
description: Install requirements, install codecov-cli from branch, run tests, then upload
2 changes: 2 additions & 0 deletions app/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ def divide(x, y):
return 'Cannot divide by 0'
return x * 1.0 / y

def test():
return 'sample change'
Loading