-
Notifications
You must be signed in to change notification settings - Fork 98
85 lines (73 loc) · 2.44 KB
/
linting-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
name: run ibm.power_aix collection linting tests
# run sanity test during pull request to dev-collection
on:
pull_request:
branches: [dev-collection]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
########################################################################
# module linting test
# - makes sure that the collection conforms with PEP8 coding style
# standards
########################################################################
module-linting-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ansible_collections/ibm/power_aix
strategy:
matrix:
ansible-version: ['2.10']
python-version: ['3.9']
name: running module linting test
steps:
- name: checkout repository
uses: actions/checkout@v2
with:
path: ansible_collections/ibm/power_aix
- name: setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install linting test requirements
run: |
python -m pip install --upgrade pip
make install-ansible ANSIBLE_VERSION=${{ matrix.ansible-version }}
make install-sanity-test-requirements
- name: run pep8 coding style linter
run: |
make module-lint
########################################################################
# role linting test
# - makes sure that the collection conforms with PEP8 coding style
# standards
########################################################################
role-linting-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ansible_collections/ibm/power_aix
strategy:
matrix:
ansible-version: ['2.10']
python-version: ['3.9']
name: running role linting test
steps:
- name: checkout repository
uses: actions/checkout@v2
with:
path: ansible_collections/ibm/power_aix
- name: setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install linting test requirements
run: |
python -m pip install --upgrade pip
make install-ansible ANSIBLE_VERSION=${{ matrix.ansible-version }}
make install-sanity-test-requirements
- name: run pep8 coding style linter
run: |
make role-lint