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
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: inputset
identifier: inputset
orgIdentifier: default
projectIdentifier: default_project
pipeline:
identifier: examplepython
properties:
ci:
codebase:
build:
type: PR
spec:
number: <+trigger.prNumber>
54 changes: 54 additions & 0 deletions .harness/pipelines/example-python.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 --upgrade pip setuptools wheel
pip install -r requirements.txt
Comment thread
thomasrockhu-codecov marked this conversation as resolved.
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: 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>
Loading