1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-10 18:15:39 +00:00

[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 7d8bf179e7)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2026-05-31 17:58:38 +02:00 committed by GitHub
parent a58bb6af00
commit 74b8eec664
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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