-
-
Notifications
You must be signed in to change notification settings - Fork 782
Use codecov-cli over python-codecov #6036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8e4f965
341a49e
46ab07f
e002b73
4669ff9
0cc2ec5
043d439
9056e01
0f81454
f224a2d
87dc75b
2121afd
559a3e5
98c3636
a61ac51
a2df958
06718aa
4536e2f
29cc295
7b837e0
9fe0f12
5687d33
456b61b
337e427
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,15 +19,12 @@ | |
| # If we're on Travis, then we need to manually check that the build succeeded. | ||
| if [[ "${USER}" == "runner" || ${TRAVIS_TEST_RESULT} -eq 0 ]]; then | ||
| # 1. Install codecov dependencies | ||
| # NOTE: We need eventlet installed so coverage can be correctly combined. This is needed because we are covering code which utilizes eventlet. | ||
| # Without eventlet being available to the coverage command it will fail with "Couldn't trace with concurrency=eventlet, the module isn't installed." | ||
| pip install eventlet | ||
| # NOTE: codecov only supports coverage==4.5.2 | ||
| pip install 'coverage<5.0' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With removing https://github.com/StackStorm/st2/actions/runs/6603759812/job/17937403741?pr=6040#step:17:38 so it's indeed needed, please keep it included
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will put it back one sec here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I apologize about that. That should do it for ya.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No worries, and thanks for your work! 👍 |
||
| pip install "codecov==2.1.11" | ||
| pip install -U pip | ||
| pip install coverage | ||
| pip install codecov-cli>=0.3.2 | ||
|
|
||
| # 2. Combine coverage report and submit coverage report to codecovs.io | ||
| codecov --required | ||
| # 2. Combine coverage report and submit coverage report to codecov.io | ||
| codecovcli upload-process -t "${CODECOV_TOKEN}" | ||
| exit $? | ||
| else | ||
| echo "Build has failed, not submitting coverage" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.