-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (40 loc) · 1.41 KB
/
compile-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
---
name: run ibm.power_vios collection compile 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:
########################################################################
# compile test
# - makes sure that the collection has compatible syntax
# with python version 3.6, 3.7, and 3.8
########################################################################
compile-test:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ansible_collections/ibm/power_vios
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8']
ansible-version: ['2.9']
name: running compile tests with python ${{ matrix.python-version }}
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 ansible ${{ matrix.ansible-version }}
run: |
make install-ansible ANSIBLE_VERSION=${{ matrix.ansible-version }}
- name: run compile test on python ${{ matrix.python-version }}
run: |
make compile PYTHON_VERSION=${{ matrix.python-version }}