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 validation of Github workflows to pre-commit #425

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

camposandro
Copy link
Contributor

This pull request adds a new hook to the pre-commit config to validate GitHub workflows. It downloads the schema directly from the GitHub vendor (which is updated periodically) and checks if the schema is compliant. Closes #383.

Checklist

  • This PR is meant for the lincc-frameworks/python-project-template repo and not a downstream one instead.
  • This change is linked to an open issue
  • This change includes integration testing, or is small enough to be covered by existing tests

@camposandro camposandro self-assigned this Feb 14, 2024
Copy link
Contributor

@hombit hombit left a comment

Choose a reason for hiding this comment

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

Thank you

@drewoldag
Copy link
Collaborator

This looks like a great addition. Just to be sure, did you confirm that all of our current workflows pass the pre-commit check?

@camposandro
Copy link
Contributor Author

Yes, I created a repository with the latest PPT release just to make sure, and the workflows were validated!

Copy link
Collaborator

@drewoldag drewoldag left a comment

Choose a reason for hiding this comment

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

Awesome! Looks good!

@camposandro camposandro merged commit 9c136cd into main Feb 14, 2024
13 checks passed
@camposandro camposandro deleted the issue/382/pre-commit-workflow-validation branch February 14, 2024 21: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.

Feature request: pre-commit hook for CI workflow files
3 participants