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:
parent
a58bb6af00
commit
74b8eec664
1 changed files with 9 additions and 9 deletions
18
.github/workflows/nox.yml
vendored
18
.github/workflows/nox.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue