Ignoring some files in coverage testing when github actions is taking care of continuous integration

I would like to skip the coverage testing (via codecov.io) for some of the files in a github repo. I’m using github actions to run workflows for continuous integration. The files I want to skip are not part of the primary modules anymore, but I’m not ready to delete them from the repo altogether.

I’ve come across a lot of conflicting information about how to do this, but nothing I have tried has actually worked. I reached to support at codecov.io, and after a bit of back and forth, got something figured out. Posted below in hopes it might be useful to others as well.

Here’s what worked for me.

  1. The list of files to be skipped is not included in the main CI.yml file but included in a separate yml file with the ignore tag. Here’s my specific example:
ignore:
  - "src/proto*.jl"  
  - "src/plotsForPaper.jl"
  - "src/early_tests_of_bases.jl"
  - "src/convertStrin.jl"
  - "src/convertVaspData.jl"
  1. This file is named codecov.yml (not .codecov.yml)
  2. This file is placed in the root folder of the repo, not in .github/workflows.