From 45a71b0d33cfdb5a9862d8473951030fb0b9fb1f Mon Sep 17 00:00:00 2001 From: Cian Hatton Date: Tue, 30 Aug 2022 22:12:51 +0100 Subject: [PATCH] adding ansible lint to requirements --- .github/workflows/ci.yml | 13 +++++++++++++ Makefile | 1 - requirements.txt | 17 +++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dba5bb2..720051c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,19 @@ env: ANSIBLE_FORCE_COLOR: '1' jobs: + lint: + name: Test Ansible Playbooks + runs-on: ubuntu-latest + steps: + - name: Checkout the codebase + uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.8.9 + - name: Install test dependencies. + - name: Install requirements + run: make deps + tests: name: Test Ansible Playbooks runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index b1849f9..c3d4d75 100644 --- a/Makefile +++ b/Makefile @@ -16,5 +16,4 @@ verify: deps: pip install -r requirements.txt - pip3 install "ansible-lint" ansible-galaxy install -r requirements.yml diff --git a/requirements.txt b/requirements.txt index 04e9da6..34c11c1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,14 @@ ansible==6.3.0 ansible-compat==2.2.0 ansible-core==2.13.3 +ansible-doctor==1.4.3 +ansible-lint==6.5.1 +anyconfig==0.13.0 +appdirs==1.4.4 arrow==1.2.2 attrs==22.1.0 binaryornot==0.4.4 +bracex==2.3.post1 Cerberus==1.3.2 certifi==2022.6.15 cffi==1.15.1 @@ -11,10 +16,13 @@ chardet==5.0.0 charset-normalizer==2.1.1 click==8.1.3 click-help-colors==0.9.1 +colorama==0.4.5 commonmark==0.9.1 cookiecutter==2.1.1 cryptography==37.0.4 enrich==1.2.7 +environs==9.5.0 +filelock==3.8.0 idna==3.3 importlib-resources==5.9.0 Jinja2==3.1.2 @@ -22,8 +30,11 @@ jinja2-time==0.2.0 jsonschema==4.14.0 linode-api4==5.2.1 MarkupSafe==2.1.1 +marshmallow==3.17.1 molecule==4.0.1 +nested-lookup==0.2.25 packaging==21.3 +pathspec==0.9.0 pkgutil_resolve_name==1.3.10 pluggy==1.0.0 pycparser==2.21 @@ -31,14 +42,20 @@ Pygments==2.13.0 pyparsing==3.0.9 pyrsistent==0.18.1 python-dateutil==2.8.2 +python-dotenv==0.20.0 +python-json-logger==2.0.4 python-slugify==6.1.2 PyYAML==6.0 requests==2.28.1 resolvelib==0.8.1 rich==12.5.1 +ruamel.yaml==0.17.21 +ruamel.yaml.clib==0.2.6 six==1.16.0 subprocess-tee==0.3.5 text-unidecode==1.3 typing_extensions==4.3.0 urllib3==1.26.12 +wcmatch==8.4 +yamllint==1.27.1 zipp==3.8.1