ci: run Windows gateway stop checks with serial coordination
This commit is contained in:
1 parent
72e4297c7a
commit
ef9409dc89
2 files changed
+15
-1
No files matched your search
@@ -73,3 +73,14 @@ def test_windows_installer_matrix_has_an_independent_required_job():
|
||||
assert not any("tests/test_install_scripts.py" in step.get("run", "")
|
||||
for step in jobs["windows_process"]["steps"])
|
||||
assert "windows_installers" in jobs["required"]["needs"]
|
||||
|
||||
|
||||
def test_windows_gateway_stop_checks_run_serially_without_losing_coverage():
|
||||
job = workflow("ci.yml")["jobs"]["test"]
|
||||
path = "tests/test_update_stop.py"
|
||||
for item in job["strategy"]["matrix"]["include"]:
|
||||
assert (f"--ignore={path}" in item["pytest_args"]) == (item["os"] == "windows-latest")
|
||||
steps = [step for step in job["steps"] if path in step.get("run", "").split()]
|
||||
assert len(steps) == 1
|
||||
assert steps[0]["if"] == "runner.os == 'Windows'"
|
||||
assert "-n" not in steps[0]["run"].split()
|
||||
Reference in new issue
Block a user