Skip to content

Run Tests workflow only when Python changes#603

Merged
marcvergees merged 1 commit into
fireform-core:developmentfrom
chetanr25:tests_cicd
Jul 1, 2026
Merged

Run Tests workflow only when Python changes#603
marcvergees merged 1 commit into
fireform-core:developmentfrom
chetanr25:tests_cicd

Conversation

@chetanr25

Copy link
Copy Markdown
Collaborator

Run Tests workflow only when Python changes

Right now the Tests workflow runs on every PR, even when the change is only docs or the OpenAPI contract or some other file that has no Python in it. Those runs can never tell us anything new, so they just waste CI time.

This adds a paths filter to the workflow. Tests now run only when:

  • a Python file changed (**.py)
  • requirements.txt or alembic.ini changed
  • the Tests workflow file itself changed

Everything else skips the run.

One thing to watch: if "Tests" is a required check in branch protection, a skipped run shows as pending and could block merge. If that happens we can switch to a small gate job that always reports a status. Left out for now to keep this change small.

Fixes #602

@marcvergees marcvergees merged commit 18c52ce into fireform-core:development Jul 1, 2026
1 check passed
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.

Tests workflow runs on every PR, even when no Python code changed

2 participants