Skip to content

ci(build): consolidate pytest workflow steps#43

Merged
JSONbored merged 4 commits into
mainfrom
codex/ci-efficiency-workflows
Apr 25, 2026
Merged

ci(build): consolidate pytest workflow steps#43
JSONbored merged 4 commits into
mainfrom
codex/ci-efficiency-workflows

Conversation

@JSONbored
Copy link
Copy Markdown
Owner

Summary

  • Consolidate repeated pytest, JUnit, Trunk upload, and failure handling into a local composite action.
  • Share the Docker build cache scope between integration prebuilds and publish builds.
  • Extend CI path and pinned-action coverage to local workflow actions.

What changed

  • Added .github/actions/run-pytest for real pytest suite execution with optional Trunk upload.
  • Updated unit and integration CI jobs to call the local action instead of duplicating shell blocks.
  • Added pytest coverage for workflow consolidation, shared cache scope, and local-action change detection.

Why

  • Reduces duplicated CI logic and drift.
  • Improves Docker cache reuse without removing validation coverage.
  • Keeps checks as real pytest suite runs, not smoke tests.

Validation

  • .venv-ci/bin/python -m pytest tests/unit tests/template -q
  • trunk fmt .github/workflows/build.yml .github/actions/run-pytest/action.yml tests/unit/test_workflow_ci_efficiency.py
  • trunk check --ci .github/workflows/build.yml .github/actions/run-pytest/action.yml tests/unit/test_workflow_ci_efficiency.py

Notes

  • .venv-local is missing defusedxml in this checkout, so the full local pytest pass used .venv-ci.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 87f2663441

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/build.yml Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 586b422e5e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/build.yml
@JSONbored JSONbored self-assigned this Apr 25, 2026
@JSONbored JSONbored merged commit 582e8bf into main Apr 25, 2026
11 checks passed
@JSONbored JSONbored deleted the codex/ci-efficiency-workflows branch April 25, 2026 08:05
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.

1 participant