Skip to content

Upload coverage to Coveralls.io - #91

Merged
Raphael-Gazzotti merged 5 commits into
openMetadataInitiative:pipelinefrom
apdavison:add-coveralls
Sep 12, 2026
Merged

Raphael-Gazzotti merged 5 commits into
openMetadataInitiative:pipelinefrom
apdavison:add-coveralls

Conversation

@apdavison

@apdavison apdavison commented Mar 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds --cov-report lcov to the existing pytest coverage run (Python 3.14 only)
  • Adds a coverallsapp/github-action@v2 step to upload the LCOV report to Coveralls.io after tests pass

Coverage reports: https://coveralls.io/github/openMetadataInitiative/openMINDS_Python

@apdavison
apdavison requested a review from lzehl March 27, 2026 15:53
Comment thread .github/workflows/test.yml Outdated
apdavison and others added 3 commits September 11, 2026 11:55
Co-authored-by: Raphael-Gazzotti <125291580+Raphael-Gazzotti@users.noreply.github.com>
Coverage was measured against the copy of the package installed into site-packages, so the paths reported to Coveralls embedded the Python patch version and changed with every runner image update, leaving consecutive builds with no files in common. Putting target/ first on PYTHONPATH records the same files as target/openminds/..., which the Coveralls reporter reduces to a stable repo-relative path.

Also set fail-on-error: false, so that a failed upload from a fork pull request does not fail the job.
The test workflow only runs on pull requests, so Coveralls has no build of the pipeline branch itself. This measures coverage on the 3.14 leg of the build workflow as well, and uploads it the same way.
@apdavison

Copy link
Copy Markdown
Member Author

Hi @Raphael-Gazzotti thanks for the feedback. I've made some additional improvements (see commit messages), please could you take another look?

@Raphael-Gazzotti
Raphael-Gazzotti merged commit 0c5467f into openMetadataInitiative:pipeline Sep 12, 2026
3 checks passed
@apdavison
apdavison deleted the add-coveralls branch September 12, 2026 17:00
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