Record CI and main's protection in the decisions, hold ci.sh's image to README's Python, and say so in README
CI / tests (pull_request) Successful in 3m10s

This commit is contained in:
2026-11-09 02:50:26 +01:00
parent 73d77a0cf8
commit a88f74f5ac
6 changed files with 39 additions and 8 deletions
+4 -4
View File
@@ -22,12 +22,12 @@ import os
import pathlib
import sys
from command_patterns.tally import table, tally
from failure import Failure
from git_cli.git_repo import git
from records.utc_stamp import seconds
from transcript_archive.location import project_archive
from transcript_archive.read import finished_chunks, read_threads
from git_cli.git_repo import git
from transcript_archive.location import project_archive
from records.utc_stamp import seconds
from command_patterns.tally import table, tally
USAGE = "usage: command-patterns [<version>]"
@@ -8,8 +8,8 @@ import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from command_patterns.tally import pattern, Row, tally
from test_env import isolated_env
from command_patterns.tally import pattern, Row, tally
TOOL = pathlib.Path(__file__).resolve().parents[1] / "command-patterns"
+22
View File
@@ -0,0 +1,22 @@
import pathlib
import re
import sys
import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from repo_checks import ROOT
from repo_checks.test_types import SUPPORTED
class Ci(unittest.TestCase):
def test_ci_runs_the_python_readme_install_names(self):
image = re.search(r"python:(3\.\d+)\.\d+", (ROOT / "ci.sh").read_text(encoding="utf-8"))
supported = SUPPORTED.search((ROOT / "README.md").read_text(encoding="utf-8"))
self.assertIsNotNone(image, "ci.sh runs a python:3.N.P image")
self.assertIsNotNone(supported, "README.md's Install names `the latest stable Python, today 3.N`")
self.assertEqual(image.group(1), supported.group(1), "ci.sh's image follows the Python README.md's Install names")
if __name__ == "__main__":
unittest.main()