tests: pin ruamel.yaml version

0.17.0 which was released today (03/26/2021) breaks ansible-lint execution with
py2.7.

From https://pypi.org/project/ruamel.yaml we can read:

> The 0.16.13 release was the last that will tested to be working on Python 2.7.

Let's enforce the version on 0.16.13 when running with py2.7

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/6392/head
Guillaume Abrioux 2021-03-26 14:25:08 +01:00
parent ba6fa5c959
commit a65968a9d1
1 changed files with 1 additions and 1 deletions

View File

@ -16,6 +16,6 @@ jobs:
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 ruamel.yaml==0.16.13
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