Skip to content

Commit

Permalink
tox: Prepare a temp collections path for ansible-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmdln committed Apr 23, 2023
1 parent 2a1b6d6 commit b0e1117
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit b0e1117

Please sign in to comment.