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

Feat: add pytest job to _Test-OCI-Factory workflow #224

Merged
merged 16 commits into from
Aug 30, 2024

Conversation

clay-lake
Copy link
Contributor

Ping the @canonical/rocks team.

This PR adds a job to .github/workflows/_Test-OCI-Factory.yaml which executes pytest from the root of the repository and generates a simple test report to that step's $GITHUB_STEP_SUMMARY.

More tests will be added in subsequent refactoring PRs

@clay-lake
Copy link
Contributor Author

Here is a sample integration where you can see the test summary, and the uploaded jUnit report artifact.
https://github.com/clay-lake/oci-factory/actions/runs/10473012228

Copy link
Collaborator

@cjdcordeiro cjdcordeiro left a comment

Choose a reason for hiding this comment

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

This sounds like a good initiative.

I'd like to see this combined with at least one test, so I'd wait at least until 1 test is ready.

.github/workflows/_Test-OCI-Factory.yaml Outdated Show resolved Hide resolved
.github/workflows/_Test-OCI-Factory.yaml Outdated Show resolved Hide resolved
.github/workflows/_Test-OCI-Factory.yaml Outdated Show resolved Hide resolved
.github/workflows/_Test-OCI-Factory.yaml Outdated Show resolved Hide resolved
src/test-oci-factory/pytest/format_markdown_report.py Outdated Show resolved Hide resolved
.github/workflows/_Test-OCI-Factory.yaml Outdated Show resolved Hide resolved
.github/workflows/_Test-OCI-Factory.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@linostar linostar left a comment

Choose a reason for hiding this comment

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

Looks neat and good. My remarks have already been addressed.

Copy link
Collaborator

@cjdcordeiro cjdcordeiro left a comment

Choose a reason for hiding this comment

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

almost there. You may also want to lint all files. Some are missing a newline at EOF and others have inconsistent break lines throughout the text

.github/workflows/_Test-OCI-Factory.yaml Show resolved Hide resolved
Copy link
Contributor

@zhijie-yang zhijie-yang left a comment

Choose a reason for hiding this comment

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

Looks good to me now. Thanks!

Copy link
Collaborator

@cjdcordeiro cjdcordeiro left a comment

Choose a reason for hiding this comment

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

greeeat thanks

@cjdcordeiro cjdcordeiro self-assigned this Aug 30, 2024
@cjdcordeiro cjdcordeiro merged commit e780734 into canonical:main Aug 30, 2024
4 checks passed
@clay-lake clay-lake deleted the feat_add_pytest_job branch August 30, 2024 12:29
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.

4 participants