Skip to content

Commit 0ea3dcd

Browse files
Update pipeline Build example-python
1 parent fd0bd0c commit 0ea3dcd

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

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

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ pipeline:
2121
command: |-
2222
python -m pip install --upgrade pip
2323
pip install -r requirements.txt
24-
curl -Os https://cli.codecov.io/latest/linux/codecovcli
25-
chmod +x codecovcli
24+
pip install codecov-cli
2625
- step:
2726
type: Run
2827
name: Run tests and collect coverage
@@ -41,7 +40,7 @@ pipeline:
4140
identifier: Upload_test_results_to_Codecov
4241
spec:
4342
shell: Sh
44-
command: ./codecovcli do-upload --report-type test_results -f junit.xml --fail-on-error -v
43+
command: codecovcli do-upload --report-type test_results -f junit.xml --fail-on-error -v
4544
envVariables:
4645
CODECOV_TOKEN: <+secrets.getValue("CODECOV_TOKEN")>
4746
- step:
@@ -50,7 +49,7 @@ pipeline:
5049
identifier: Upload_coverage_to_Codecov_arg_token
5150
spec:
5251
shell: Sh
53-
command: ./codecovcli do-upload -t ${CODECOV_TOKEN} --fail-on-error -v
52+
command: codecovcli do-upload -t ${CODECOV_TOKEN} --fail-on-error -v
5453
envVariables:
5554
CODECOV_TOKEN: <+secrets.getValue("CODECOV_TOKEN")>
5655
- step:
@@ -59,7 +58,7 @@ pipeline:
5958
identifier: Upload_coverage_to_Codecov_env_token
6059
spec:
6160
shell: Sh
62-
command: ./codecovcli do-upload --fail-on-error -v
61+
command: codecovcli do-upload --fail-on-error -v
6362
envVariables:
6463
CODECOV_TOKEN: <+secrets.getValue("CODECOV_TOKEN")>
6564
- step:
@@ -68,7 +67,7 @@ pipeline:
6867
identifier: Upload_coverage_to_Codecov_no_token
6968
spec:
7069
shell: Sh
71-
command: ./codecovcli do-upload --fail-on-error -v
70+
command: codecovcli do-upload --fail-on-error -v
7271
platform:
7372
os: Linux
7473
arch: Amd64

0 commit comments

Comments
 (0)