-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Make PRs not run tests twice on each commit #1100
Comments
As you said we run the # Event that triggers the workflow
on:
pull_request: # any pull_request event:
push: # any push to any branch
branches:
- '**' Possible solutions to avoid duplicated runs are:
on:
push:
branches:
- '**' This is super simple to do but doing so we lose the codecov report comment on PRs as in #1098 (comment).
If we don't care much about the codecov report on the comment I would go with What do you think? |
I think 2 would be nice. I don't really use codecov that often, but it seems like a good thing to do / incorporate more. |
Right now CI runs tests twice for every commit on a PR. One for (push) and one for (pull request). We actually often get into a situation where the push test is done, but we're still waiting on the pull request CI test.
Is it possible to de-duplicate this? Perhaps only having tests on commit? (Do we lose anything by doing that?)
The text was updated successfully, but these errors were encountered: