-
Notifications
You must be signed in to change notification settings - Fork 237
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
Build PR branches only once (for origin branches) and skip docs changes #314
Conversation
But I sometimes test in my own repository (development only on one system). So this configuration may introduce additional, obsolete PR. |
So you have your own CI services set up on your fork? |
yes. Github actions are enabled out of box based on .github/workflow directory. EDIT: |
Okay, you'd have to enable those yourself by deleting this change if you have a branch that you want test on. |
And there isn't a way to ignore PRs coming from the same repo (rather than pushes to branches in the repo)? |
I don't think so, but I had an idea- you could test your personal branches by raising a PR to your own fork's master branch, rather than upstream master |
basing on https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idif In github workflow it maybe something like jobs:
test:
if: github.repository != 'joerick/cibuildwheel' || github.ref == master || github.event_name == 'pull_request' |
Ah, okay, I'll give that a shot. |
My PR branches get built twice on some CI services (Appveyor, Travis, Github), once for the PR and once for the branch. This disables the branch build, for anything other than master, to save some CI time.
Also, on services that support it, I've disabled docs changes from needing CI runs.