From 8c070873c8a693b57a122b5e5e838847aaf34d3f Mon Sep 17 00:00:00 2001 From: WilliamK112 <164879897+WilliamK112@users.noreply.github.com> Date: Wed, 2 Sep 2026 23:33:55 +0800 Subject: [PATCH] ci: install test dependencies in real-model nightly --- .github/workflows/nightly-real-model.yml | 4 +++- tests/test_phase5_backcompat.py | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly-real-model.yml b/.github/workflows/nightly-real-model.yml index e725cb3a..74901c9c 100644 --- a/.github/workflows/nightly-real-model.yml +++ b/.github/workflows/nightly-real-model.yml @@ -23,7 +23,9 @@ jobs: - name: Install (semantic extra + training deps) run: | python -m pip install -U pip - pip install -e ".[semantic,bench,cli]" onnx pytest pytest-cov + # Pytest imports every collected test module before applying -k, so + # install the repository's test dependencies as well as the runtime. + pip install -e ".[dev,semantic]" onnx - name: Build dev artifacts (synthetic-only, offline) run: make training-dev-artifacts PY=python - name: Real-model runtime smoke (registry + calibration artifact) diff --git a/tests/test_phase5_backcompat.py b/tests/test_phase5_backcompat.py index ed50fd95..5b5a0f43 100644 --- a/tests/test_phase5_backcompat.py +++ b/tests/test_phase5_backcompat.py @@ -109,6 +109,13 @@ def test_pr_ci_test_job_excludes_online_and_large_markers(): assert 'pytest -m "not online and not large"' in text +def test_nightly_real_model_installs_test_dependencies(): + text = (REPO_ROOT / ".github" / "workflows" / "nightly-real-model.yml").read_text( + encoding="utf-8" + ) + assert 'pip install -e ".[dev,semantic]" onnx' in text + + def test_wheel_size_workflow_checks_onnx_and_training_paths(): text = (REPO_ROOT / ".github" / "workflows" / "wheel-size.yml").read_text(encoding="utf-8") assert ".onnx" in text