Sort the new imports, narrow prepare-scoring's git results, and take run-tests' worker count from the heavy slot
CI / tests (pull_request) Successful in 2m20s

This commit is contained in:
2026-11-12 08:56:39 +01:00
parent 90773cfa5f
commit c04864b6f0
8 changed files with 18 additions and 30 deletions
+4 -2
View File
@@ -18,9 +18,11 @@ import subprocess
import sys
import tempfile
from machine_load.slots import CPUS_PER_SLOT
BIN = pathlib.Path(__file__).resolve().parents[1]
# README.md → Test names these pins, and ci.sh runs this command, so they live here alone.
PYTEST = ["uvx", "--python", shutil.which("python3") or sys.executable, "--with", "pytest-xdist==3.8.0", "pytest==9.2.0", "-n", "4"]
# README.md → Test names these pins, and ci.sh runs this command, so they live here alone. The workers fill one heavy slot, since run-heavy grants one.
PYTEST = ["uvx", "--python", shutil.which("python3") or sys.executable, "--with", "pytest-xdist==3.8.0", "pytest==9.2.0", "-n", str(CPUS_PER_SLOT)]
SECTION = re.compile(r"^=+ (.+) =+$")
TEST_HEADER = re.compile(r"^_+ .+ _+$")
# A traceback's last line, such as `bin/x/test_x.py:12: AssertionError`.