Skip to content

ci: add GitHub Actions smoke-test workflow - #7

Draft
HelloBryte wants to merge 1 commit into
mainfrom
claude/laughing-heisenberg-bz86s0
Draft

HelloBryte wants to merge 1 commit into
mainfrom
claude/laughing-heisenberg-bz86s0

Conversation

@HelloBryte

Copy link
Copy Markdown
Owner

Summary

Routine maintenance pass on this resume/portfolio repo.

  • Checked requirements.txt: numpy==1.26.4 is already the latest 1.x release and pygame==2.6.1 is already the latest release overall, so there's no safe (non-major) version bump available. Left both pins as-is.
  • Reviewed the README against the current code (Python requirement, CLI flags, default search depth/cell size, evaluation-function weights, project structure) — everything checked out as accurate, so no doc corrections were needed.
  • Added .github/workflows/ci.yml: a small GitHub Actions workflow (Python 3.9 + 3.11) that installs requirements.txt, syntax-checks all five modules with py_compile, and runs a full headless CLI game (python main.py --cli --quiet --depth 2 with SDL_VIDEODRIVER=dummy) on every push/PR to main. The repo had no CI at all, so this was a genuine gap and a low-risk, additive improvement — several past PRs' "test plans" have relied on manually re-running this same smoke test locally, so automating it seemed worthwhile.
  • Added the resulting CI status badge to the README, under the title.

Note for the repo owner

This intentionally does not duplicate the work already sitting in open, unmerged draft PRs against this repo:

Those four PRs overlap with each other in places (e.g. #4/#5 both add the same LICENSE file) and might be worth reconciling — merging one, closing the duplicate — next time a human looks at this repo. No branches were deleted this pass since all four have unmerged work.

Test plan

  • python -m py_compile on all five .py modules — clean
  • Fresh venv install of the pinned requirements.txt
  • python main.py --cli --quiet --depth 1 and --depth 2 full games run to completion (headless, SDL_VIDEODRIVER=dummy)
  • Validated .github/workflows/ci.yml YAML syntax

Generated by Claude Code

Deps (numpy 1.26.4, pygame 2.6.1) are already at the latest safe pins
and the README's setup/CLI docs match the code, so no changes were
needed there this pass. Adds a small CI workflow that was missing:
on push/PR to main it installs requirements, syntax-checks all
modules, and runs a full headless CLI game (depth 2) on Python 3.9
and 3.11 to catch regressions automatically instead of relying on
manual "ran it locally" notes in PR descriptions. Also adds the
resulting status badge to the README.

This intentionally does not duplicate the LICENSE file, numpy 2.x
bump, or unit test suite already proposed in the open, unmerged PRs
#3, #4, and #5.
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.

2 participants