.codecov.yml range and target are set, but badge color is not updating

.codecov.yml range and target are set, but badge color is not updating

I have recently introduced a .codecov.yml to a private GH repository to set the “green” threshold for our badge. CC properly calculates the coverage % but the badge color is not being updated.

We have another repository in the same account that has the same .codecov.yml settings that DOES show the correct color.

What’s wrong?

Repository

It’s private, but the .codecov.yml contains (dashes => blanks):

coverage:
–range: 70…80
–status:
----project:
------default:
--------target: 80

The code coverage is currently at >83% and the badge color is yellow

Versions

N/A

Additional Information

N/A

Most of the time the answer would be that the badge image has be cached and needs to be reloaded.

Note there are many caching systems between you and codecov. It can be anything from your browser, your provider, hosting, etc. all the way back to codecov’s servers.

You can request a refresh from within your browser.
Some browsers have the option ‘reload image’ available in the context menu, otherwise usually Ctrl + F5 does the job.

1 Like