-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (39 loc) · 1.23 KB
/
porting-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
---
name: run ibm.power_vios collection sanity 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:
########################################################################
# porting test
# - makes sure that the collection is properly ported for python3
########################################################################
porting-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ansible_collections/ibm/power_vios
strategy:
matrix:
ansible-version: ['2.9']
python-version: ['3.7']
name: running python3 porting test
steps:
- name: checkout repository
uses: actions/checkout@v2
with:
path: ansible_collections/ibm/power_vios
- 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
python -m pip install pylint==2.10.*
- name: run python3 porting linter
run: |
make porting