-
Notifications
You must be signed in to change notification settings - Fork 14
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
GitHub Action to run the tests on every pull request #17
Conversation
Rebased to the |
@@ -0,0 +1,23 @@ | |||
name: test | |||
on: | |||
push: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you agree that it is not necessary to run the tests for every Push action, but only as a required check before merging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was actually looking to see if anyone had already done something like this for PRs. Would be most handy. I agree checking every push is unnecessary right now, and just making sure tests pass for each PR would be ideal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub's Python docs seem to favor on: [push]
but I am flexible.
It is useful if contributors and reviewers can see the tests pass before starting the code review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cclauss. I am not very familiar with setting up github checks, so do I understand correctly that having them on push would re-trigger the checks on every push? In that case I agree having them on push makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplified to just on: [push]
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nice explanation can be found at
If you are going to run |
@cclauss thanks for all the updates. I requested for rebasing to be enabled and will let you know when that has happened. In the mean time, I wonder if you have noticed the requirement in the contributing guidelines that Ableton has received a CLA from any contributors. Would you be able to submit one for us? |
Done. |
.github/workflows/ci.yml
Outdated
@@ -0,0 +1,17 @@ | |||
name: test | |||
on: [push] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This means the workflow will trigger when a branch in this repository (not in a fork) is pushed to. So when an external contributor opens a new pull request, it won't trigger the workflow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to follow the factory-boy example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cclauss, we had another look and have a few questions:
- it looks like
pull_request
needs to bepull_request_target
in order to run from forks, would you be able to change that? - nitpick:
- since we're only testing a single python version, perhaps having the
matrix
entry is not needed and the3.x
version can just be in-lined inpython-version: ${{ matrix.python-version }}
. - OR: since
ubuntu-latest
already comes with python 3.10.x, perhapsactions/setup-python@v5
is not needed at all.
- since we're only testing a single python version, perhaps having the
Thanks again for your ongoing attention to this!
Do these three suggestions cover it? |
@cclauss they do, thank you! |
Hi @cclauss, sorry for the long wait. We needed a bit more discussion, but it's all approved now. It would be great if you can rebase one last time and then I can merge. |
Rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current state of .github/workflows/ci.yml
is an old state, and is not what we want to merge to this repository. Please restore the state that was in 4fc0a77.
Test output: https://github.com/cclauss/maxdevtools/actions