My file has an ignore part but these files show on codecov.
ignore:
- "contrib" # ignore folders and all its contents
- "rmutil" # ignore folders and all its contents
- "tests" # ignore folders and all its contents
@drazisil I am having the same issue as @ashtul. Our repo is private so I cannot share it here, but I have tried lot and lots of different ways to ignore the paths that I’m interested in ignoring, and none worked.
I have tried passing multiple directory paths, a single directory path, and a file extension glob (test/**/*.sol). I have double-checked that the CI run is executed correctly, and it is.
This is all what we have in our Codecov config file (codecov.yml at the root of the repo):
ignore:
- "test"
I have validated the config with your validation API, and I have ensured that our Codecov token stored as a secret is correct - we know that the upload step works because the coverage does get uploaded to your web service.
Thanks, @tom! Enabling the Codecov app in our GitHub organization fixed this - I can now see the Codecov YAML config picked up and displayed on the Codecov website, and the directories ignored.
However, I don’t see why this has to be a requirement for the Codecov GitHub Action to pick up the config. It might be worth it to mention this in the README - I opened a PR here.
@PaulRBerg the GitHub app is necessary because that’s how Codecov is able to communicate with GitHub after uploads (in order to set statuses, read files like codecov.yml, etc).
I misspoke, the glob issue is actually a slightly different format, yours should be fine. Are you seeing an issue there?