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

Python in CI/CD, add lintage and tests #306

Merged
merged 8 commits into from
Dec 13, 2023

Conversation

woodruffw
Copy link
Contributor

@woodruffw woodruffw commented Dec 11, 2023

This adds a python.yml workflow, which contains both a test matrix and a linting job.

It also adds a convenience Makefile for performing common developer tasks on the Python binding.

Closes #247.

Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
@woodruffw woodruffw marked this pull request as ready for review December 11, 2023 17:15
@woodruffw woodruffw requested a review from a team as a code owner December 11, 2023 17:15
@woodruffw
Copy link
Contributor Author

CC @adityasaky @joshuagl

Needed for `make reformat` on generated code.

Signed-off-by: William Woodruff <[email protected]>
Copy link
Contributor

@joshuagl joshuagl left a comment

Choose a reason for hiding this comment

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

Thanks for working on this so promptly!

.github/workflows/python.yml Show resolved Hide resolved
Copy link
Contributor

@marcelamelara marcelamelara left a comment

Choose a reason for hiding this comment

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

Thanks for theses updates @woodruffw !

I think this also addresses/supersedes #247. So I'll close that once this is merged.

@marcelamelara
Copy link
Contributor

@woodruffw I assume this branch may need to be rebased wrt main? Can you pls resolve the conflicts?

@woodruffw
Copy link
Contributor Author

@woodruffw I assume this branch may need to be rebased wrt main? Can you pls resolve the conflicts?

Done!

@woodruffw woodruffw requested a review from joshuagl December 12, 2023 19:29
Copy link
Contributor

@joshuagl joshuagl left a comment

Choose a reason for hiding this comment

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

This is great, thank you!

@marcelamelara marcelamelara merged commit 3f50724 into in-toto:main Dec 13, 2023
8 checks passed
@woodruffw woodruffw deleted the ww/ci branch December 13, 2023 16:51
@woodruffw woodruffw mentioned this pull request Dec 13, 2023
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.

Protoc-generated Python code should pass pylint/black checks
3 participants