We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0741b65 commit 6d60fd4Copy full SHA for 6d60fd4
noxfile.py
@@ -6,10 +6,14 @@
6
# dependencies = ["nox>=2025.02.09", "antsibull-nox"]
7
# ///
8
9
+import os
10
import sys
11
12
import nox
13
14
+# Whether the noxfile is running in CI:
15
+IN_CI = os.environ.get("CI") == "true"
16
+
17
18
try:
19
import antsibull_nox
@@ -43,7 +47,10 @@ def ansible_output(session: nox.Session) -> None:
43
47
# Tools for post-processing
44
48
"ruamel.yaml", # used by docs/docsite/reformat-yaml.py
45
49
)
46
- session.run("antsibull-docs", "ansible-output", *session.posargs)
50
+ args = []
51
+ if IN_CI:
52
+ args.append("--check")
53
+ session.run("antsibull-docs", "ansible-output", *args, *session.posargs)
54
55
56
# Allow to run the noxfile with `python noxfile.py`, `pipx run noxfile.py`, or similar.
0 commit comments