Skip to content

Commit

Permalink
Add smoke testing with ansible-lint (#312)
Browse files Browse the repository at this point in the history
Adds a pipeline that checks ansible-lint test results with current
version of ansible-compat.
  • Loading branch information
ssbarnea authored Aug 15, 2023
1 parent 58aa9f9 commit 48c38dd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
py39-ansible214
py39-ansible215
py311-devel
smoke
platforms: linux,macos
macos: minmax
build:
Expand Down
19 changes: 19 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,22 @@ commands =
mkdocs {posargs:build} --strict
extras = docs
passenv = *

[testenv:smoke]
description = Run ansible-lint own testing with current code from compat library
commands_pre =
ansible localhost -m ansible.builtin.git -a 'repo=https://github.com/ansible/ansible-lint dest={envdir}/tmp/ansible-lint'
pip install -e "{envdir}/tmp/ansible-lint[test]"
commands =
bash -c "pip freeze|grep ansible"
pytest -k role
deps =
ansible-core
setenv =
{[testenv]setenv}
PIP_CONSTRAINT = /dev/null
PYTEST_REQPASS = 0
changedir = {envdir}/tmp/ansible-lint
allowlist_externals =
pwd
bash

0 comments on commit 48c38dd

Please sign in to comment.