From: Guillaume Abrioux Date: Wed, 10 Feb 2021 07:04:09 +0000 (+0100) Subject: tests: install correct ansible-lint version X-Git-Tag: v4.0.46 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=55d0c79046d6640ef6c9729059748ad0dd16b87b;p=ceph-ansible.git 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 --- diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 2ce665cf0..f020fbd65 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -14,5 +14,8 @@ jobs: with: python-version: ${{ matrix.python-version }} 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 + 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 \ No newline at end of file