(new: bool)
| 152 | |
| 153 | |
| 154 | def 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 | |
| 167 | def main() -> Any: |