Skip to content

Remove branch restriction to allow testing feature branches #9467

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

Merged
merged 1 commit into from
Jan 1, 2022

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Jan 1, 2022

Follow on from #9461 (comment):

Allow the CI to test feature branches on forks, so contributors can check their branch passes the CI before creating a PR.

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

👍

@@ -3,8 +3,6 @@ name: main
on:
push:
branches:
Copy link
Member

Choose a reason for hiding this comment

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

i presume we need the branches key?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think so, because there's a tags sibling key too. But irrelevant now because we're allowing "test-me-*" instead :)

Comment on lines 6 to 7
- main
- "[0-9]+.[0-9]+.x"
Copy link
Member

Choose a reason for hiding this comment

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

this is intentional to prevent double-testing branches -- my recommendation is to instead add another prefix such as what I do here

Copy link
Member

Choose a reason for hiding this comment

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

I agree, this would be rather wasteful - instead of running CI twice for each change (PR + main), it will be run 3 times (branch + PR + main). I think that for local testing, @asottile's suggestion or a local PR would do.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good, updated with test-me-*!

@hugovk hugovk force-pushed the ci-rm-feature-branch-restriction branch from a3385b6 to 819c67f Compare January 1, 2022 21:36
Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

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

@asottile asottile merged commit 548cc4f into pytest-dev:main Jan 1, 2022
@hugovk hugovk deleted the ci-rm-feature-branch-restriction branch January 2, 2022 06:48
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.

4 participants