1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-11 10:35:34 +00:00
community.general/.github/workflows/nox.yml
patchback[bot] 74b8eec664
[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>
2026-05-31 17:58:38 +02:00

28 lines
791 B
YAML

---
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
name: nox
'on':
push:
branches:
- main
- stable-*
pull_request:
# Run CI once per day (at 08:00 UTC)
schedule:
- 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:
uses: ansible-community/antsibull-nox/.github/workflows/reusable-nox-run.yml@main
with:
session-name: Run extra sanity tests
change-detection-in-prs: true