Skip to content

Restore artefact regeneration and the artefacts tarball in the release workflow - #72

Merged
harryswift01 merged 2 commits into
mainfrom
71-restore-artefact-regeneration-and-the-artefacts
Oct 29, 2026
Merged

harryswift01 merged 2 commits into
mainfrom
71-restore-artefact-regeneration-and-the-artefacts

Conversation

@harryswift01

Copy link
Copy Markdown
Member

Summary

This PR restores two release steps that were dropped in the move to the shared workflows: regenerating the artefacts in the version pull request, and attaching biosim-schema-artifacts.tar.gz to the GitHub release. Closes #71.

Changes

  • Move all shared-workflow pins to CCPBioSim/.github 0.17.0, which adds the version-command and release-assets inputs to release-prepare.
  • Pass version-command to install the package and run biosim-schema-generate derived and jsonschema after the version bump, so the version pull request includes the regenerated files.
  • Pass release-assets-command and release-assets to build biosim-schema-artifacts.tar.gz from biosim_schema/schema/ and project/ and attach it to the GitHub release.

Testing

  • After merging, run the release with dry-run: true and check that the shown changes include project/linkml/jsonschema/biosim_schema.schema.json.

Impact

  • Releases regenerate the versioned artefacts again, so verify keeps passing on main after a release.
  • Each release has the artefacts tarball again, which biosimdb-interface's CI and Docker image download.
  • The tarball is built from the release tag, so it always matches the tagged files.

Checklist

  • Tests added or updated
  • Documentation updated
  • If dependencies in pyproject.toml changed, the lower bounds were reviewed deliberately

@jkalayan jkalayan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks Harry for adding the artefact generation back into the release workflow. Other changes to include would be a check for artefact generation in the PR workflow and including sphinx docs generation in the docs workflow.

Comment thread .github/workflows/pr.yaml Resolved
Comment thread .github/workflows/pr.yaml Resolved
@harryswift01

harryswift01 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member Author

Thanks Harry for adding the artefact generation back into the release workflow. Other changes to include would be a check for artefact generation in the PR workflow and including sphinx docs generation in the docs workflow.

Thanks for flagging this. Both checks still run on every PR, just inside the shared jobs instead. The Docs job runs biosim-schema-generate docs and then builds the Sphinx site with warnings as errors (ci-docs.yaml L81–93). The Pre-commit job runs our derived and verify hooks in CI (ci-pre-commit.yaml L50-52, with the hooks in .pre-commit-config.yaml L36-48), so out-of-date generated files fail CI even if pre-commit wasn't run locally.

@jkalayan jkalayan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Now that the monorepo is called for most workflow steps, the addition of repo-specific CI is much easier to make, as is the addition to release.yaml, which ensures that generated schema files are up-to-date with the latest version of the biosim-schema.

@harryswift01
harryswift01 merged commit 371f047 into main Oct 29, 2026
13 checks passed
@harryswift01
harryswift01 deleted the 71-restore-artefact-regeneration-and-the-artefacts branch October 29, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore artefact regeneration and the artefacts tarball in the release workflow

2 participants