MCPcopy
hub / github.com/pex-tool/pex / list_test_cmds

Function list_test_cmds

scripts/build-cache-image.py:154–164  ·  view source on GitHub ↗
(new: bool)

Source from the content-addressed store, hash-verified

152
153
154def list_test_cmds(new: bool) -> list[str]:
155 base_pythons = "new" if new else "old"
156 with (Path(".github") / "workflows" / "ci.yml").open() as fp:
157 data = yaml.full_load(fp)
158 return sorted(
159 dict.fromkeys(
160 entry["test-cmd"]
161 for entry in data["jobs"]["linux-tests"]["strategy"]["matrix"]["include"]
162 if base_pythons == entry.get("base-pythons", "new")
163 )
164 )
165
166
167def main() -> Any:

Callers 1

mainFunction · 0.85

Calls 2

openMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected