ci: isolate Test Suite runs by revision

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-23 00:45:10 +08:00
1 parent 3dfcb5de5b
commit 10ad48cc13
2 files changed
+8 -1

No files matched your search

+2 -1
View File
@@ -8,7 +8,8 @@ on:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# Re-runs retain their original SHA; only checks of the same revision may supersede each other.
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}
cancel-in-progress: true
permissions:
+6
View File
@@ -42,6 +42,12 @@ def test_accepted_handoff_uses_the_producer_id_and_requires_native_success():
assert "name" not in download["with"]
def test_ci_runs_for_distinct_revisions_do_not_cancel_each_other():
concurrency = workflow("ci.yml")["concurrency"]
assert concurrency["group"] == "${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}"
assert concurrency["cancel-in-progress"] == "true"
def test_windows_installer_matrix_has_an_independent_required_job():
jobs = workflow("ci.yml")["jobs"]
installer = jobs["windows_installers"]