From a65968a9d14466e3fd1d7ca5628be3029782a6fa Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 26 Mar 2021 14:25:08 +0100 Subject: [PATCH] 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 --- .github/workflows/ansible-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index f020fbd65..8ec1f9a54 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -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 -- 2.39.5