ci(scripts): add a wrapper that runs ansible-test sanity on HEAD

ansible-test only runs a collection from an ansible_collections/<namespace>/<name> directory, so scripts/ansible-test-sanity.sh copies HEAD (git archive: the committed files only) into a temporary one, applies the Build job's ignore-file step and runs ansible-test sanity --requirements, passing extra arguments through. The sanity tests carry their own pylint, pep8 and shellcheck settings and also scan the Python under tests/, which ruff and the other hooks do not (the Build check failed on a name only that pylint disallows). The hook that runs it before a push follows in the next commit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
Defame1297andClaude Sonnet 5.5 committed 2026-11-14 15:49:51 +00:00
1 parent 6b930a0f7e
commit 574c0d00f9
3 files changed
+279

No files matched your search

+1
View File
@@ -82,6 +82,7 @@ IGNORED = (
"scripts/check_image_versions.py",
"scripts/check_tarball.py",
"scripts/ansible-lint.sh",
"scripts/ansible-test-sanity.sh",
"scripts/dev-setup.sh",
"scripts/reuse_lint.py",
)