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
-16
View File
@@ -1,16 +0,0 @@
import pathlib
import re
import sys
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from machine_load.slots import CPUS_PER_SLOT
from repo_checks import ROOT
class TestLine(unittest.TestCase):
def test_the_readme_runs_the_tests_in_one_heavy_slots_cpus(self):
workers = re.search(r"pytest==\S+ -n (\d+) bin`", (ROOT / "README.md").read_text(encoding="utf-8"))
self.assertIsNotNone(workers, "README.md's Test line runs `pytest==X -n N bin`")
self.assertEqual(int(workers.group(1)), CPUS_PER_SLOT)