-
Notifications
You must be signed in to change notification settings - Fork 0
Add GitHub workflow to auto-build artifacts on schema updates #73
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,70 @@ | ||||||||||||||
| name: Auto-build artifacts on schema update | ||||||||||||||
|
|
||||||||||||||
| on: | ||||||||||||||
| push: | ||||||||||||||
| branches: | ||||||||||||||
| - main | ||||||||||||||
| - develop | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know that there are any existing conventions in this repo for a branch named |
||||||||||||||
| paths: | ||||||||||||||
| - 'src/schema/linkml/**' | ||||||||||||||
| pull_request: | ||||||||||||||
| paths: | ||||||||||||||
| - 'src/schema/linkml/**' | ||||||||||||||
|
|
||||||||||||||
| jobs: | ||||||||||||||
| build-artifacts: | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| if: ${{ !contains(github.event.head_commit.message, '[skip artifacts]') }} | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add comment saying that |
||||||||||||||
|
|
||||||||||||||
| steps: | ||||||||||||||
| - name: Checkout repository | ||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||
| with: | ||||||||||||||
| token: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||
| fetch-depth: 0 | ||||||||||||||
|
|
||||||||||||||
| - name: Set up Python 3.12 | ||||||||||||||
| uses: actions/setup-python@v4 | ||||||||||||||
| with: | ||||||||||||||
| python-version: 3.12 | ||||||||||||||
|
Comment on lines
+27
to
+29
|
||||||||||||||
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" |
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.
As commented here (#73 (comment)), this step as a whole can be removed.
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.
- "Set up Python 3.12" is unnecessary. "Install dependencies" (via uv sync) will take care of installing Python.
- Regarding
astral-sh/setup-uv@v3:v6is available now
Copilot
AI
Sep 16, 2025
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.
[nitpick] The target name 'gen-artefacts' uses British spelling. Consider using 'gen-artifacts' for consistency with American English conventions typically used in software development.
| make gen-artefacts | |
| make gen-artifacts |
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.
Add comment explaining how this "check for changes" + "check the results of that check" works.
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 want to point out that this will make an additional commit to the repository.
Uh oh!
There was an error while loading. Please reload this page.
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 recommend ensuring tests pass before regenerating the artifacts. That could be accomplished by invoking a different workflow, as long as that other workflow has:
...or by running the tests directly in this workflow.