Skip to content

Add coverage CI job#34

Open
douglaswinter wants to merge 1 commit intomainfrom
dw/coverage_ci
Open

Add coverage CI job#34
douglaswinter wants to merge 1 commit intomainfrom
dw/coverage_ci

Conversation

@douglaswinter
Copy link
Copy Markdown
Collaborator

Runs coverage on PR, on main, and ensures there is no regression on a per-project basis.

Fixes #28

Comment on lines +4 to +6
pull_request:
branches:
- main
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand this correctly, it will only run on pull requests that target main?
Does it need to be run on all pull requests instead?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correct, you don't need to run it for a PR into something other than main... at some point you'll want that in main and then it will trigger (as in for this PR itself)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How long does it take to run? If not long, can just add to all PRs.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But 1) why? you can do whatever you want in your branch, I'm only interested at the point of merging to main; and 2) we could do it for all PRs, but we'd need to change the script to make it meaningful, which currently runs coverage on your change and then checks out main specifically to get a baseline coverage.

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.

Add a github workflow action that fails if PR test coverage for any project decreases

3 participants