Skip to content

CI: run nightly tests only on main #569

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 4 commits into from
Mar 13, 2023
Merged

Conversation

twoertwein
Copy link
Member

xref #568

@twoertwein
Copy link
Member Author

twoertwein commented Mar 13, 2023

I still got an email from the error on my fork. I think there might be repository-wide settings to either disable running fork workflows or at least skipping the optional nightly workflow for forks.

edit: https://github.com/orgs/community/discussions/26704#discussioncomment-3252979

@twoertwein
Copy link
Member Author

I don't have permissions to change the repository settings. Disabling workflows for forks might also help the workflows here to start earlier (assuming they share the same queue).

@twoertwein twoertwein requested a review from Dr-Irv March 13, 2023 16:37
@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Mar 13, 2023

I don't have permissions to change the repository settings. Disabling workflows for forks might also help the workflows here to start earlier (assuming they share the same queue).

I've given you Admin permissions on pandas-stubs so now you can change the settings. Let me know if I should approve and merge before or after you change the settings.

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

I'm approving, but not merging. Will await for merging once you decide if I should merge before or after you make the changes in settings.

@twoertwein
Copy link
Member Author

edit: https://github.com/orgs/community/discussions/26704#discussioncomment-3252979

I realized that the above link does not allow disabling actions for forks (its only actions on for everything or nothing). Feel free to remove the admin permissions for me again. I made no settings changes.

I think with the current version, the CI will still run for forks but only if people push to main of their fork (haven't tested it). At the very least, the CI is not run for my fork for this PR.

could add if: ${{ github.repository == 'pandas-dev/pandas-stubs' }} to all jobs to also ensure that the CI isn't run on forks/main. Pandas doesn't seem to do that.

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Mar 13, 2023

Feel free to remove the admin permissions for me again. I made no settings changes.

I've removed them, but thanks for letting me know that no changes were made.

I think with the current version, the CI will still run for forks but only if people push to main of their fork (haven't tested it). At the very least, the CI is not run for my fork for this PR.

Let's see what happens after I merge.

could add if: ${{ github.repository == 'pandas-dev/pandas-stubs' }} to all jobs to also ensure that the CI isn't run on forks/main. Pandas doesn't seem to do that.

I'm not going to worry too much about what happens with people's personal forks of the repo. At least for me, if I'm creating a PR, I just push to the new branch and let the actions run. If everything passes, I'll create the PR. If not, I fix before doing the PR.

@Dr-Irv Dr-Irv merged commit 41fe0f5 into pandas-dev:main Mar 13, 2023
@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Mar 13, 2023

I think with the current version, the CI will still run for forks but only if people push to main of their fork (haven't tested it). At the very least, the CI is not run for my fork for this PR.

Let's see what happens after I merge.

So it's actually quite nice. It seems to create 2 separate actions for main - one is the set we care about, and the second is the nightly ones.

twoertwein added a commit to twoertwein/pandas-stubs that referenced this pull request Apr 1, 2023
* CI: run nightly tests only on main

* avoid running optional tests on forks

* test

* skip normal tests on non-main branches
@twoertwein twoertwein deleted the ci_nightly branch August 17, 2023 15:38
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.

2 participants