From 307df8c4f3018c33c4aec2c27d7f7725bd1ca7ab Mon Sep 17 00:00:00 2001 From: Samuel Laferriere <9342524+samlaf@users.noreply.github.com> Date: Tue, 7 Jul 2026 15:54:41 +0800 Subject: [PATCH] ci: run the test suite as part of make check Add a `test` target (repo-wide unittest discovery) and fold it into `check`, so the existing `make check` CI step runs the tests without a workflow change. Tests added to any package (deploy_gcp included) are picked up automatically. Discovery runs with -b so the progress prints and gate warnings from code under test only surface when a test fails. --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2a01bfc..95c600c 100644 --- a/Makefile +++ b/Makefile @@ -2,17 +2,18 @@ PKG := deploy_gcp tee -.PHONY: help lint format format-check typecheck check +.PHONY: help lint format format-check typecheck test check help: @echo "Targets:" - @echo " check lint + format-check + typecheck (what CI runs)" + @echo " check lint + format-check + typecheck + test (what CI runs)" @echo " lint ruff check" @echo " format ruff format (writes changes)" @echo " format-check ruff format --check" @echo " typecheck ty check" + @echo " test unittest discovery (repo-wide)" -check: lint format-check typecheck +check: lint format-check typecheck test lint: uv run ruff check $(PKG) @@ -25,3 +26,8 @@ format-check: typecheck: uv run ty check $(PKG) + +# -b buffers each test's stdout/stderr and replays it only on failure, so +# passing runs stay quiet (the code under test prints progress + warnings). +test: + uv run python -m unittest discover -b