Skip to content

Modified workflow files #496

Modified workflow files

Modified workflow files #496

Workflow file for this run

---
name: run ibm.power_aix 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, and 3.8
########################################################################
compile-test:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ansible_collections/ibm/power_aix
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.8', '3.9', '3.10', '3.11', '3.12']
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_aix
- name: setup python
uses: actions/setup-python@v4
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 }}