From 74b8eec664c3c1c75ff8af0fc2f6dc694bed6fda Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 17:58:38 +0200 Subject: [PATCH] [PR #12157/7d8bf179 backport][stable-12] CI: improve nox GHA workflow (#12159) CI: improve nox GHA workflow (#12157) * Auto-cancel older PR nox runs. * Use shared workflow. (cherry picked from commit 7d8bf179e77363295e85ac9c4aba75872d56f513) Co-authored-by: Felix Fontein --- .github/workflows/nox.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/nox.yml b/.github/workflows/nox.yml index 15cb9807e8..7c299d10b6 100644 --- a/.github/workflows/nox.yml +++ b/.github/workflows/nox.yml @@ -15,14 +15,14 @@ name: nox - cron: '0 8 * * *' workflow_dispatch: +concurrency: + # Make sure there is at most one active run per PR, but do not cancel any non-PR runs + group: ${{ github.workflow }}-${{ (github.head_ref && github.event.number) || github.run_id }} + cancel-in-progress: true + jobs: nox: - runs-on: ubuntu-latest - name: "Run extra sanity tests" - steps: - - name: Check out collection - uses: actions/checkout@v6 - with: - persist-credentials: false - - name: Run nox - uses: ansible-community/antsibull-nox@main + uses: ansible-community/antsibull-nox/.github/workflows/reusable-nox-run.yml@main + with: + session-name: Run extra sanity tests + change-detection-in-prs: true