Skip to content
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

Add command and workflow to validate rates.yaml #3

Merged
merged 1 commit into from
May 29, 2024

Conversation

larsks
Copy link
Member

@larsks larsks commented May 24, 2024

We want to ensure that new changes do not introduce errors in rates.yaml.
This commit adds a validate-rates-file command and an associated Github
workflow that will use the new command to validate rates.yaml on pull
requests.

The validate-rates-file command knows how to generate github annotations 1
for pydantic validation errors and yaml parse errors.

We want to ensure that new changes do not introduce errors in rates.yaml.
This commit adds a `validate-rates-file` command and an associated Github
workflow that will use the new command to validate `rates.yaml` on pull
requests.

The validate-rates-file command knows how to generate github annotations [1]
for pydantic validation errors and yaml parse errors.

[1]: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message
@larsks
Copy link
Member Author

larsks commented May 24, 2024

The annotations added when running the validation workflow look like this:

Screenshot from 2024-05-24 11-13-41

Or this:

Screenshot from 2024-05-24 11-14-06

@larsks larsks requested review from knikolla, naved001 and QuanMPhm May 24, 2024 19:24
@larsks larsks merged commit 74eb4a7 into CCI-MOC:main May 29, 2024
2 checks passed
@larsks larsks deleted the feature/validate-rates branch May 29, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants