diff --git a/.github/workflows/nightly-real-model.yml b/.github/workflows/nightly-real-model.yml index e725cb3..74901c9 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 ed50fd9..5b5a0f4 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