Skip to content

ci(build): consolidate pytest workflow steps#46

Merged
JSONbored merged 3 commits intomainfrom
codex/ci-efficiency-workflows
Apr 24, 2026
Merged

ci(build): consolidate pytest workflow steps#46
JSONbored merged 3 commits intomainfrom
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-local/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

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: 8204e10d1e

ℹ️ 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
@JSONbored JSONbored self-assigned this Apr 24, 2026
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: f601580c5d

ℹ️ 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
@JSONbored JSONbored merged commit 0c4da24 into main Apr 24, 2026
12 checks passed
@JSONbored JSONbored deleted the codex/ci-efficiency-workflows branch April 24, 2026 21:45
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