Commit a65968a9 authored by Guillaume Abrioux's avatar Guillaume Abrioux
Browse files

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: default avatarGuillaume Abrioux <gabrioux@redhat.com>
parent ba6fa5c9
......@@ -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
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment