https://github.com/python/cpython/commit/1176facbf21388ef29276ec55a95a66423f61191
commit: 1176facbf21388ef29276ec55a95a66423f61191
branch: main
author: Stan Ulbrych <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2026-01-13T08:28:09-05:00
summary:

gh-141004: Don't trigger `run-tests` when 
`Tools/check-c-api-docs/ignored_c_api.txt` is changed (GH-143583)

files:
M Tools/build/compute-changes.py

diff --git a/Tools/build/compute-changes.py b/Tools/build/compute-changes.py
index 524d3066fbffa7..c491f06e9968fe 100644
--- a/Tools/build/compute-changes.py
+++ b/Tools/build/compute-changes.py
@@ -19,14 +19,16 @@
     from collections.abc import Set
 
 GITHUB_DEFAULT_BRANCH = os.environ["GITHUB_DEFAULT_BRANCH"]
-GITHUB_CODEOWNERS_PATH = Path(".github/CODEOWNERS")
 GITHUB_WORKFLOWS_PATH = Path(".github/workflows")
 
-CONFIGURATION_FILE_NAMES = frozenset({
-    ".pre-commit-config.yaml",
-    ".ruff.toml",
-    "mypy.ini",
+RUN_TESTS_IGNORE = frozenset({
+    Path("Tools/check-c-api-docs/ignored_c_api.txt"),
+    Path(".github/CODEOWNERS"),
+    Path(".pre-commit-config.yaml"),
+    Path(".ruff.toml"),
+    Path("mypy.ini"),
 })
+
 UNIX_BUILD_SYSTEM_FILE_NAMES = frozenset({
     Path("aclocal.m4"),
     Path("config.guess"),
@@ -172,11 +174,7 @@ def process_changed_files(changed_files: Set[Path]) -> 
Outputs:
             if file.name == "reusable-wasi.yml":
                 platforms_changed.add("wasi")
 
-        if not (
-            doc_file
-            or file == GITHUB_CODEOWNERS_PATH
-            or file.name in CONFIGURATION_FILE_NAMES
-        ):
+        if not doc_file and file not in RUN_TESTS_IGNORE:
             run_tests = True
 
             platform = get_file_platform(file)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to