Add a coverage test when pushing to master#5265
Open
GarethCabournDavies wants to merge 9 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a code coverage test job to the GitHub Actions CI workflow. The coverage job is configured to run on pushes to the master branch or on pull requests that have been labeled with 'coverage', allowing coverage testing without running it on every PR event.
Changes:
- Renamed workflow from "Flake8 check" to "Code quality checks"
- Modified workflow triggers to run on push to master and various PR events
- Added a new coverage job that installs dependencies, runs tests with coverage tracking, generates an HTML report, and uploads it as an artifact
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
GarethCabournDavies
force-pushed
the
coverage
branch
2 times, most recently
from
January 26, 2026 15:57
de4f9be to
232573b
Compare
GarethCabournDavies
force-pushed
the
coverage
branch
from
February 13, 2026 14:31
3b7bcf9 to
04e5169
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a coverage test. So that it isn't run too often, Ive set it so that it will run on pushes to master rather than for all events in a PR (unless its got a specific label, I think I set this up correctly)
This is largely based on the process used by gwpy
Standard information about the request
This is a new feature in the CI
This changehas been proposed using the contribution guidelines
Motivation
So that we are regularly reminded of the importance of testing!
Contents
A new GitHub job
Testing performed
The coverage test works locally and produces a html page with a table of the coverage for each module under pycbc. I have no idea if it will run in the CI, as I think this will use the rules of master to decide whether to turn the test or not, for a test which doesn't exist in master