Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Add action to test with upstream linkml#316

Merged
cmungall merged 2 commits into
linkml:mainfrom
sneakers-the-rat:actions-linkml-testing
Apr 2, 2024
Merged

Add action to test with upstream linkml#316
cmungall merged 2 commits into
linkml:mainfrom
sneakers-the-rat:actions-linkml-testing

Conversation

@sneakers-the-rat

@sneakers-the-rat sneakers-the-rat commented Mar 25, 2024

Copy link
Copy Markdown
Contributor

Fix: linkml/linkml#1749

This PR adds an action to run the linkml tests against the current version of linkml-runtime.

This action runs after an approving review has been received, and can also be run manually. This is because this is a relatively expensive test, and should only be run after the content of a PR has been approved to check whether any modifications will need to be made upstream to accommodate it.

If this is accepted, in order for it to be protective we probably need to also add a branch protection rule that prevents pull requests from being merged until this action has passed. otherwise the temptation might be to approve a PR and then immediately merge it, since the action will run only then.

As with all github actions things, i am actually not sure it will do exactly what i think it will until i see it run, so this might require a little debugging, but anyway it should help out with the perennial need to manually run linkml tests against linkml-runtime and make it a bit easier for this repo to be developed safely

differences from linkml main.yaml

I swapped out the default being pydantic 1 to pydantic 2, since 1 is soon to be deprecated, and also added testing for 3.11

dynamic versioning

This PR ALSO adds dynamic versioning to this repo exactly as is done in linkml - i am not sure why that wasn't present before, but it seems like it should be? currently the version in the repo is literally 0.0.0 and that prevents us from checking that the correct linkml-runtime version is installed during this action

don't specify linkml-runtime repository so it works on pull requests
@codecov

codecov Bot commented Mar 25, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.70%. Comparing base (ed36311) to head (ea9c1b7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #316   +/-   ##
=======================================
  Coverage   62.70%   62.70%           
=======================================
  Files          63       63           
  Lines        8580     8580           
  Branches     2444     2444           
=======================================
  Hits         5380     5380           
  Misses       2583     2583           
  Partials      617      617           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We need to test before release. linkml-runtime release v1.6.1 is broken, and it's impacting the rest of the supply chain (e.g. bmt toolkit)

2 participants