Skip to content

Commit d197ce8

Browse files
Update pipeline Build example-python
1 parent 747a007 commit d197ce8

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

  • .harness/orgs/codecov/projects/codecov/pipelines

.harness/orgs/codecov/projects/codecov/pipelines/CI.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,16 @@ pipeline:
2828
identifier: Run_tests_and_collect_coverage
2929
spec:
3030
shell: Sh
31-
command: pytest --cov app --junitxml=junit.xml -o junit_family=legacy
32-
reports:
33-
type: JUnit
34-
spec:
35-
paths:
36-
- junit.xml
31+
command: pytest --cov app --cov-report=lcov:lcov.info
3732
- step:
3833
type: Run
39-
name: Upload test results to Codecov
40-
identifier: Upload_test_results_to_Codecov
34+
name: Upload coverage to Harness
35+
identifier: Upload_coverage_to_Harness
4136
spec:
4237
shell: Sh
43-
command: codecovcli --verbose do-upload --report-type test_results -f junit.xml --fail-on-error
38+
command: hcli cov upload --file=lcov.info
4439
envVariables:
45-
CODECOV_TOKEN: <+secrets.getValue("CODECOV_TOKEN")>
40+
CI_ENABLE_HCLI_FOR_TESTS: "true"
4641
- step:
4742
type: Run
4843
name: Upload coverage to Codecov -- arg token

0 commit comments

Comments
 (0)