-
Notifications
You must be signed in to change notification settings - Fork 19
97 lines (93 loc) · 2.93 KB
/
nox.yml
File metadata and controls
97 lines (93 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
# 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
# SPDX-FileCopyrightText: 2023 Maxwell G <maxwell@gtmx.me
name: nox
'on':
push:
branches:
- main
- stable-*
pull_request:
branches:
- main
- stable-*
# Run once per week (Monday at 04:00 UTC)
schedule:
- cron: '0 4 * * 1'
workflow_dispatch:
env:
FORCE_COLOR: "1"
OTHER_ANTSIBULL_MODE: local
jobs:
nox:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- session: test
python-versions: "3.9, 3.10, 3.11, 3.12, 3.13, 3.14"
force-python: ""
codecov: true
packages: ""
- session: lint
python-versions: "3.14"
force-python: "3.14"
codecov: false
packages: ""
name: "Run nox ${{ matrix.session }} session"
steps:
- name: Check out antsibull-docs
uses: actions/checkout@v6
with:
path: antsibull-docs
persist-credentials: false
- name: Check out dependent project antsibull-core
uses: actions/checkout@v6
with:
repository: ansible-community/antsibull-core
path: antsibull-core
persist-credentials: false
- name: Check out dependent project antsibull-docs-parser
uses: actions/checkout@v6
with:
repository: ansible-community/antsibull-docs-parser
path: antsibull-docs-parser
persist-credentials: false
- name: Check out dependent project antsibull-changelog
uses: actions/checkout@v6
with:
repository: ansible-community/antsibull-changelog
path: antsibull-changelog
persist-credentials: false
- name: Check out dependent project antsibull-docutils
uses: actions/checkout@v6
with:
repository: ansible-community/antsibull-docutils
path: antsibull-docutils
persist-credentials: false
- name: Check out dependent project antsibull-fileutils
uses: actions/checkout@v6
with:
repository: ansible-community/antsibull-fileutils
path: antsibull-fileutils
persist-credentials: false
- name: Install extra packages
if: "matrix.packages != ''"
run: |
sudo apt-get install -y ${{ matrix.packages }}
- name: Setup nox
uses: wntrblm/nox@2026.04.10
with:
python-versions: "${{ matrix.python-versions }}"
- name: Run nox
uses: ansible-community/github-action-run-nox@v1
with:
sessions: ${{ matrix.session }}
force-pythons: ${{ matrix.force-python }}
working-directory: antsibull-docs
codecov: ${{ matrix.codecov }}
codecov-session: coverage
codecov-token: ${{ secrets.CODECOV_TOKEN }}