Skip to content

ci(build): consolidate pytest workflow steps#60

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

ci(build): consolidate pytest workflow steps#60
JSONbored merged 4 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

@JSONbored JSONbored self-assigned this Apr 25, 2026
@JSONbored JSONbored merged commit e5a2f4c into main Apr 25, 2026
11 checks passed
@JSONbored JSONbored deleted the codex/ci-efficiency-workflows branch April 25, 2026 07:42
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