Skip to content

Commit 8401eb9

Browse files
Update pipeline example-python
1 parent 2e7f2f5 commit 8401eb9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.harness/pipelines/example-python.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ pipeline:
2727
spec:
2828
shell: Sh
2929
command: pytest --cov app
30+
- step:
31+
type: Run
32+
name: Upload to Codecov
33+
identifier: Codecov
34+
spec:
35+
shell: Sh
36+
command: |
37+
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step curl -Os https://cli.codecov.io/latest/linux/codecov curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig
38+
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
39+
shasum -a 256 -c codecov.SHA256SUM
40+
./codecov --verbose upload-process -t $CODECOV_TOKEN
41+
envVariables:
42+
CODECOV_TOKEN: <+secrets.getValue("CODECOV_TOKEN")>
3043
platform:
3144
os: Linux
3245
arch: Amd64

0 commit comments

Comments
 (0)