From c8ac371d63192c6d63f14f61b83658f7beb2f5ba Mon Sep 17 00:00:00 2001 From: xiayu Date: Tue, 23 Jun 2026 17:39:53 +0800 Subject: [PATCH] fix: align public preflight with CI gate --- Makefile | 12 +++++++++++- tests/test_public_release_positioning.py | 3 +++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b994bc9e..874c8033 100644 --- a/Makefile +++ b/Makefile @@ -361,7 +361,17 @@ public-docs-build: public-test: @echo "==> test" @uv sync --extra all - @uv run --extra all pytest + @uv run --extra dev pytest \ + tests/test_open_source_audit.py \ + tests/test_runtime_common_packaging.py \ + tests/test_public_release_positioning.py \ + tests/test_tracing_setup_otlp.py \ + tests/test_check_publication_state.py \ + tests/test_check_approval_record.py \ + tests/test_markdown_repair.py \ + tests/test_conversation_runtime.py \ + tests/test_server_session_app.py \ + -q PUBLIC_KSADK_WEB_VERSION ?= 0.2.11 diff --git a/tests/test_public_release_positioning.py b/tests/test_public_release_positioning.py index 3651401b..3c48759d 100644 --- a/tests/test_public_release_positioning.py +++ b/tests/test_public_release_positioning.py @@ -124,6 +124,9 @@ def test_pypi_publish_workflow_uses_trusted_publishing_and_bundles_ksadk_web(): assert "PUBLIC_KSADK_WEB_VERSION ?= 0.2.11" in makefile assert "public-build-check: clean-dist public-sync-ksadk-web-static" in makefile assert "public-preflight: public-audit public-build-check public-test public-docs-build" in makefile + assert "tests/test_open_source_audit.py" in makefile + assert "tests/test_conversation_runtime.py" in makefile + assert "tests/test_server_session_app.py" in makefile assert "PYPI_API_TOKEN" not in workflow assert "password:" not in workflow