Skip to content

Made changes to github workflow files #605

Made changes to github workflow files

Made changes to github workflow files #605

Workflow file for this run

---
name: run ibm.power_aix 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:
########################################################################
# sanity test
# - makes sure that the collection passes the ansible sanity tests
########################################################################
sanity-test:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ansible_collections/ibm/power_aix
strategy:
fail-fast: false
matrix:
ansible-version: ['2.9', '3', '4', '5']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
include:
- ansible-version: 'devel'
python-version: ['3.11', '3.12']
exclude:
- ansible-version: ['4', '5']
python-version: ['3.9']
name: running sanity tests with ansible ${{ matrix.ansible-version }} and 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 }}
if: ${{ matrix.ansible-version != 'devel' }}
run: |
make install-ansible ANSIBLE_VERSION=${{ matrix.ansible-version }}
- name: install ansible ${{ matrix.ansible-version }}
if: ${{ matrix.ansible-version == 'devel' }}
run: |
make install-ansible-devel-branch
- name: install sanity test requirements
run: |
make install-sanity-test-requirements
- name: run sanity test on ansible ${{ matrix.ansible-version }} and python ${{ matrix.python-version }}
run: |
make sanity-test PYTHON_VERSION=${{ matrix.python-version }}