ci: add pull_request test gate#2
Merged
Merged
Conversation
PRs in this repo currently have no automated test verification: refresh.yml triggers on schedule + workflow_dispatch only. This adds a minimal ci.yml that runs python -m unittest discover -s tests -t . on every pull_request, so future test modules (e.g. tests.test_planting_windows landing in FIE-41 / PR #1) are picked up automatically without further workflow edits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes a real gap: PRs in this repo currently have no automated test verification because
refresh.ymlonly triggers onschedule+workflow_dispatch. SP-A (PR #1) landed with 92 tests passing locally but with an empty status-checks array on the PR.This adds a tiny
.github/workflows/ci.ymlthat runspython -m unittest discover -s tests -t . -von everypull_request. Uses discover so any newtests/test_*.py(e.g.tests.test_planting_windowsonce PR #1 merges) is picked up with no workflow edit.refresh.ymlis intentionally untouched: it stays cron-only because its commit-and-push step is wrong for PR events. Two workflows, two concerns.Note: this PR's own CI run will exercise the new
ci.ymlagainst the existingtests/test_refresh.pyonly (the SP-A test module lives on the FIE-41 branch / PR #1, not yet onmain).