Skip to content

Replace codecov for simpler GitHub Actions solution#555

Closed
santisoler wants to merge 12 commits intomainfrom
ditch-codecov
Closed

Replace codecov for simpler GitHub Actions solution#555
santisoler wants to merge 12 commits intomainfrom
ditch-codecov

Conversation

@santisoler
Copy link
Copy Markdown
Member

@santisoler santisoler commented Apr 15, 2025

Replace push of test coverage reports to codecov for a simpler solution that publishes coverage report in GitHub Actions outputs. Remove .coveragerc and move configs to pyproject.toml. Run coverage on tests as well.

Relevant issues/PRs:

Inspired on changes made in
fatiando/bordado.

Todo

  • Open issue to generate HTML report in case of failure. This might be tricky due to the flat layout we are using in Harmonica.
  • Tell coverage to ignore the functions that are decorated with @run_only_with_numba.

santisoler and others added 12 commits April 15, 2025 09:17
Replace push of test coverage reports to codecov for a simpler solution
that publishes coverage report in GitHub Actions outputs.
Specify the toml part so we ensure that coverage is able to read the
configuration in .pyproject.toml.
This should fix the errors on building the HTML report.
Also, don't need to install Harmonica in editable mode anymore.
If using relative paths, the `source` argument needs to passed on the
config file instead of the command line (don't know why but says so in
the docs). We can also set patterns for paths that should be considered
the same by the reporting.
@leouieda
Copy link
Copy Markdown
Member

leouieda commented May 7, 2025

@santisoler I got this working in Tremelique today and I implemented the fix here (hopefully it works).

@leouieda
Copy link
Copy Markdown
Member

leouieda commented May 7, 2025

Not sure why it's still failing here. Will investigate.

@santisoler
Copy link
Copy Markdown
Member Author

Closing this one for now... Last month I sorted out codecov failures. I think we can keep it for a while longer.

@santisoler santisoler closed this Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants