Files
nisse/tests/ci/test_workflow.py
dongarandClaude Opus 5.5 210f681ee5
CI / checks (push) Skipped
CI / checks (pull_request) Successful in 2m21s
CI / e2e (pull_request) Successful in 3m54s
CI: one e2e at a time across every PR
Gitea now has two runners but there is one 4090. The e2e job joins one
concurrency group without cancel-in-progress, so a second PR's e2e waits
for the first. checks still run in parallel.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J5Utyfzw7gF7UhjRDEtjTk
2026-10-19 22:23:39 +00:00

17 lines
603 B
Python

"""The CI workflow's settings that matter beyond a single run."""
from pathlib import Path
import yaml
CI = Path(__file__).parent.parent.parent / ".gitea" / "workflows" / "ci.yml"
def test_only_one_e2e_runs_at_a_time() -> None:
"""Two runners, one 4090: e2e runs share one group across every PR,
and a run waits for the one before rather than cancelling it."""
e2e = yaml.safe_load(CI.read_text())["jobs"]["e2e"]
group = e2e["concurrency"]["group"]
assert "${{" not in group # the same group for every PR and branch
assert e2e["concurrency"]["cancel-in-progress"] is False