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
DM-42404: Run Felis validation on schemas #180
Conversation
This workflow validates all of the schemas in the ./yml directory using the "felis validate" command. For now, Felis is installed using a github URL. This can be changed to "pip install felis" once the package is available on PyPI.
Install Felis rather than using a separate requirements.txt file, as this may contain conflicting depedency versions.
15c3c02
to
11d4fe7
Compare
11d4fe7
to
5eb6f21
Compare
Run the validation on all updates to the repository, which will also automatically run as a PR check.
This should be helpful for developers as they incrementally commit changes on branches. It will also run automatically as a check on PRs.
df75ab3
to
ec7d68f
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.
Don't you want to delete felislint.yaml?
Anyway, this all looks reasonable, but I do see there's a fail to run on the felislinter.yaml action?
I deleted this and made note of a few warnings which are not replicated by the Pydantic model. |
This workflow is superseded by validation using the Pydantic data model. There were a few warnings from checks not implemented with the new validation, and these have been noted in Jira: https://jira.lsstcorp.org/browse/DM-42482 These can be added to the new validation framework if necessary.
This was only called from a single Github workflow and should be unnecessary now that validation has been implemented in Pydantic.
8babc1c
to
de036df
Compare
This runs the new
felis validate
command on all SDM schemas in the./yml
dir. Thefelislint.yaml
workflow was removed and replaced byvalidate.yaml
. Other workflows were also updated to be compatible with the current version of Felis.For now, Felis is installed via a github URL, as we are trying to reclaim the name from a dead package on PyPI. This can be changed to
pip install felis
when that is working properly.