Skip to content
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

Run tests on PR branch not main #188

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paulzierep
Copy link
Collaborator

According to actions/checkout#1325
this should check out to the branch used on the PR or the push event. So actually testing what is incoming.

Copy link
Member

@bebatut bebatut left a comment

Choose a reason for hiding this comment

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

I think we do not even need the checkout there

@paulzierep
Copy link
Collaborator Author

are you sure ? do you mean it's the PRs repository content by default ?

@bebatut
Copy link
Member

bebatut commented Oct 8, 2024

are you sure ? do you mean it's the PRs repository content by default ?

I am not 100% sure tbh
In the documentation of checkout, it seems that if we put nothing it should take the PR: https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-on-closed-event

@bebatut
Copy link
Member

bebatut commented Oct 8, 2024

So we would not need to change anything (except the name the step)

Copy link
Member

Choose a reason for hiding this comment

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

We should probably change on with:

on:
  push:
    branches:
      - main
      - master
  pull_request:
    branches: [main]
    types: [opened, synchronize, closed]

@paulzierep
Copy link
Collaborator Author

are you sure ? do you mean it's the PRs repository content by default ?

I am not 100% sure tbh In the documentation of checkout, it seems that if we put nothing it should take the PR: https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-on-closed-event

I am confused, so you would leave the checkout but without with ? thats what we got now, no ? and that does not really work

@paulzierep
Copy link
Collaborator Author

are you sure ? do you mean it's the PRs repository content by default ?

I am not 100% sure tbh In the documentation of checkout, it seems that if we put nothing it should take the PR: https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-on-closed-event

I am confused, so you would leave the checkout but without with ? thats what we got now, no ? and that does not really work

mhh from the docs it seems as if you are right, but that: https://github.com/galaxyproject/galaxy_codex/actions/runs/11231597142 should have failed then ...

@bebatut
Copy link
Member

bebatut commented Oct 8, 2024

It fails there: #187

@paulzierep
Copy link
Collaborator Author

It fails there: #187

Jup, but that's again the error from the column form the last PR, which is now merged in main, actually proofing that this CI did run on main, not the PR

@bebatut
Copy link
Member

bebatut commented Oct 8, 2024

Do we then need this PR?

@paulzierep
Copy link
Collaborator Author

Do we then need this PR?

Yes, I think it is still the case that the CI as is runs on the main branch not the PR branch, hence not testing anything, I assume that this PR will fix it.

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