Commit af56ad2 1 parent 1a9bbb6 commit af56ad2 Copy full SHA for af56ad2
File tree 6 files changed +242
-3
lines changed
6 files changed +242
-3
lines changed Original file line number Diff line number Diff line change 12
12
- name : Checkout Code
13
13
uses : actions/checkout@v2
14
14
15
+ - name : Setup Python 3.8
16
+ uses : actions/setup-python@v2
17
+ with :
18
+ python-version : 3.8
19
+ architecture : x64
20
+
21
+ - name : Install Poetry
22
+ uses : snok/install-poetry@v1
23
+ with :
24
+ version : 1.1.11
25
+ virtualenvs-create : true
26
+ virtualenvs-in-project : true
27
+
28
+ - name : Load cached venv
29
+ id : cached-poetry-dependencies
30
+ uses : actions/cache@v2
31
+ with :
32
+ path : .venv
33
+ key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
34
+
35
+ - name : Install dependencies
36
+ if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
37
+ run : poetry install --no-interaction --no-root
38
+
39
+ - name : Install Package
40
+ run : poetry install --no-interaction
41
+
42
+ - name : List installed packages
43
+ shell : bash -l {0}
44
+ run : |
45
+ source $VENV
46
+ pip list
47
+
15
48
- name : Run YAML Lint
16
- uses : ibiqlik/action- yamllint@v3
49
+ run : poetry run yamllint .
17
50
18
51
- name : Run Ansible Lint
19
- uses : ansible/ansible -lint-action@master
52
+ run : poetry run ansible-lint
Original file line number Diff line number Diff line change
1
+ {
2
+ "default": true,
3
+ "MD025": false,
4
+ "MD013": {
5
+ "line_length": 120,
6
+ "tables": false,
7
+ "code_blocks": false
8
+ },
9
+ "MD033": false,
10
+ "MD036": false,
11
+ "MD041": false
12
+ }
Original file line number Diff line number Diff line change @@ -4,3 +4,10 @@ extends: default
4
4
rules :
5
5
line-length :
6
6
max : 120
7
+
8
+ ignore : |
9
+ __pycache__/
10
+ .venv
11
+ .vscode
12
+ env/
13
+ venv/
Original file line number Diff line number Diff line change 2
2
<!-- markdownlint-disable-file MD014 -->
3
3
4
4
- [ Ansible Amazon Base Repository] ( #ansible-amazon-base-repository )
5
+ - [ About] ( #about )
5
6
- [ Setting Up Ansible Environment] ( #setting-up-ansible-environment )
6
7
- [ Configuring Python VENV and Ansible] ( #configuring-python-venv-and-ansible )
7
8
- [ Editor Configuration] ( #editor-configuration )
14
15
- [ Running Test Kitchen] ( #running-test-kitchen )
15
16
- [ Running Integration Tests] ( #running-integration-tests )
16
17
- [ Running Ansible Playbooks on AWS Instances] ( #running-ansible-playbooks-on-aws-instances )
18
+ - [ Example Project: Build a Local Docker/Containerd Server VM] ( #example-project-build-a-local-dockercontainerd-server-vm )
17
19
- [ Ansible References] ( #ansible-references )
18
20
19
21
## About
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ pytest-testinfra = "^6.4.0"
13
13
colorama = " ^0.4.4"
14
14
yamllint = " ^1.26.3"
15
15
codespell = " ^2.1.0"
16
+ ansible-lint = " ^5.2.1"
16
17
17
18
[tool .poetry .dev-dependencies ]
18
19
You can’t perform that action at this time.
0 commit comments