-
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
Refactor install steps into resusable workflow #341
Conversation
f5e3943
to
5fd4207
Compare
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 largely looks good to me with one question. On pushing new changes to an open PR, does it reference github.event.pull_request.id
or github.event.after
? If the latter, would this mean the setup is rerun everytime there is a new push? (Assuming this references the commit hash.)
And yes, I will end up throwing it in the centralized repo! I've added a modified version of it in the centralized repo, pending a test before merging into main. Had to change it slightly as (I think) it had to be defined as a job rather than a composite action. In any case, I'll ping you over there once I make the PR.
The install action is now available on the tagged |
b54ff34
to
ec3e0a9
Compare
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 largely looks good to me, but there is the one action path that I am not sure if it exists. Once that is confirmed to exist / updated, then this one is good to go.
.github/workflows/test.yml
Outdated
id: setup-python | ||
uses: actions/setup-python@v4 | ||
- name: Install | ||
uses: khanlab/actions/.github/actions/action-setup_task-installPyProject |
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 can't recall at the moment - wondering if you know what the behaviour is if you don't tag a specific version? I assume it would either use the latest tag or whatever is on main
?
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.
Good call, I'll add a tag
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 one is good to go once the installPyProject
tag is updated.
53d732e
to
4a3d59c
Compare
Regex was not matching the entire container path, leading to incorrect error messages
Project installation uses khanlab/actions Docker container setup is refactored into a composite rule
4a3d59c
to
a36eca3
Compare
Completing the Actions refactoring suggested by @tkkuehn.
@kaitj, you're welcome to take the flow and incorporate it into your centralized repository, if you wish