tests: install correct ansible-lint version

We need to pin the ansible-lint version depending on python version
being used.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/6260/head v4.0.46
Guillaume Abrioux 2021-02-10 08:04:09 +01:00
parent 8fada83589
commit 55d0c79046
1 changed files with 3 additions and 0 deletions

View File

@ -14,5 +14,8 @@ jobs:
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64 architecture: x64
- run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint==4.3.7
if: matrix.python-version == '3.6'
- run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint
if: matrix.python-version == '2.7'
- run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ./infrastructure-playbooks/*.yml site-container.yml.sample site-container.yml.sample - run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ./infrastructure-playbooks/*.yml site-container.yml.sample site-container.yml.sample