From d1123df20f8e6006a68a716cd2540534a117c468 Mon Sep 17 00:00:00 2001 From: Kush Zingade Date: Tue, 25 Aug 2026 01:53:59 +0800 Subject: [PATCH 1/2] tox: stop py3-unit re-pinning to Python 3.11 unit.yaml runs tox -e py3-unit across a matrix.python of 3.11/3.12/3.13, but [testenv:py3-unit] pinned basepython to python3.11, silently re-pinning every leg back to 3.11 regardless of what setup-python installed. Removing the pin lets py3-unit use whatever interpreter is already on PATH for that job, so the three CI legs actually diverge. py3-smoke keeps its own basepython pin unchanged. Ref: https://github.com/instructlab/training/issues/705 Co-Authored-By: Claude Fable 5 Signed-off-by: Kush Zingade --- tox.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/tox.ini b/tox.ini index 47a2a140..ad31800b 100644 --- a/tox.ini +++ b/tox.ini @@ -29,7 +29,6 @@ basepython = python3.11 [testenv:py3-unit] description = run unit tests with pytest -basepython = python3.11 passenv = PATH HF_HOME From 0e7f5f3d2e86bcabf17756b9c7f9b71a36585a8f Mon Sep 17 00:00:00 2001 From: Kush Zingade Date: Mon, 9 Nov 2026 20:47:40 -0500 Subject: [PATCH 2/2] tox: print the interpreter version before running unit tests Makes each CI matrix leg show which Python it actually ran on, as suggested in review. Signed-off-by: Kush Zingade --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ad31800b..765bfe93 100644 --- a/tox.ini +++ b/tox.ini @@ -42,7 +42,9 @@ setenv = CMAKE_ARGS={env:CMAKE_ARGS:-DGGML_NATIVE=off} deps = -r requirements-dev.txt -commands = {envpython} -m pytest tests/unit {posargs} +commands = + {envpython} -V + {envpython} -m pytest tests/unit {posargs} # NOTE: {posargs} is a placeholder for input positional arguments # such as `tox -e py3-unit -- --pdb` if we wanted to run pytest with pdb enabled. # `--` delimits flags that are meant for tox vs. those that are positional arguments for