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
CI / tests (pull_request) Successful in 2m20s
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user