Skip to content

Gate deployment on tests passing - #2

Merged
mlhamel merged 2 commits into
mainfrom
fix/gate-deploy-on-tests
Mar 4, 2026
Merged

Gate deployment on tests passing#2
mlhamel merged 2 commits into
mainfrom
fix/gate-deploy-on-tests

Conversation

@mlhamel

@mlhamel mlhamel commented Mar 4, 2026

Copy link
Copy Markdown
Owner

Summary

Ensures tests must pass before the site is deployed to GitHub Pages.

Changes

  • deploy.yml: Added a test job that calls the reusable test workflow (.github/workflows/test.yml). The build job now has needs: test, so if tests fail, the build and deploy steps are skipped entirely.
  • test.yml: Added workflow_call: trigger so it can be invoked as a reusable workflow from the deploy pipeline.

Flow

test (lint + pytest) → build (zola build) → deploy (GitHub Pages)

If any step fails, subsequent steps are not executed.

This PR was generated with Oz.

mlhamel and others added 2 commits March 4, 2026 01:36
The benchmark code block in first-post imports tabulate but it was
missing from pyproject.toml, causing test_markdown_code_block[first-post-block-6]
to fail with ModuleNotFoundError.

Co-Authored-By: Oz <oz-agent@warp.dev>
Add a test job to the deploy workflow that calls the reusable test
workflow. The build job now depends on test succeeding, so if tests
fail the site is never built or deployed.

Also add workflow_call trigger to test.yml so it can be used as a
reusable workflow.

Co-Authored-By: Oz <oz-agent@warp.dev>
@mlhamel
mlhamel merged commit eec9591 into main Mar 4, 2026
1 check passed
@mlhamel
mlhamel deleted the fix/gate-deploy-on-tests branch March 4, 2026 01:41
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