pytest-dev / pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
https://pytest.org
MIT License
11.64k stars 2.58k forks source link

[PR #12508/9947ec3a backport][8.2.x] ๐Ÿงช๐Ÿš‘ Pass a Codecov config to the action @ GHA #12513

Closed patchback[bot] closed 2 weeks ago

patchback[bot] commented 2 weeks ago

This is a backport of PR #12508 as merged into main (9947ec3ad1a0fb9f85b092a50b0866b3870e37ad).

The #11921 update broke uploading coverage of the main branch (or any in-repo pushes for that matter) to Codecov 4 months ago. Version 4 requires an upload token to be provided and since there was no configuration for it, the upload was failing. But the step itself was showing up as successful due to fail_ci_if_error: true being set. The error is visible in the console output, though.

This patch flips the setting to fail_ci_if_error: false and sets the Codecov upload token in the config in clear text. The non-secret part allows the PRs uploads to be more stable.