From b0e1117ea77b0c962c33e03865053bc17359fd73 Mon Sep 17 00:00:00 2001 From: jcmdln Date: Sun, 23 Apr 2023 11:36:15 -0400 Subject: [PATCH] tox: Prepare a temp collections path for ansible-lint --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index a767a73..ecdb3c2 100644 --- a/tox.ini +++ b/tox.ini @@ -18,8 +18,11 @@ skip_install = true [testenv:ansible-lint] commands = ansible-lint --version - ansible-lint -v --project-dir {toxinidir} + ansible-galaxy collection install --collections-path=/tmp/ansible {toxinidir} + ansible-lint -v --offline --project-dir {toxinidir} deps = ansible-lint +set_env = + ANSIBLE_COLLECTIONS_PATH=/tmp/ansible [testenv:mypy] commands =