Update ci-test.yml

This commit is contained in:
Ishan Jain 2022-11-22 13:28:57 +05:30 committed by GitHub
parent f36102f807
commit 91eb91f4e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,33 +13,21 @@ env:
jobs:
sanity:
name: Sanity (Ⓐ${{ matrix.ansible }})
runs-on: ubuntu-latest
name: Sanity (Ⓐ$${{ matrix.ansible_version }})
timeout-minutes: 30
strategy:
matrix:
ansible:
- stable-2.11
- stable-2.12
- stable-2.13
- devel
runs-on: ubuntu-latest
python_version: ["3.9"]
ansible_version: ["stable-2.13", "stable-2.14", "devel"]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Perform testing
uses: ansible-community/ansible-test-gh-action@release/v1
with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
- name: Run sanity tests
run: ansible-test sanity --docker -v --color --coverage
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
ansible-core-version: ${{ matrix.ansible_version }}
origin-python-version: ${{ matrix.python_version }}
target-python-version: ${{ matrix.python_version }}
testing-type: sanity
integration:
runs-on: ubuntu-latest
@ -79,4 +67,4 @@ jobs:
- name: Run integration test
run: ansible-test integration -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker --coverage
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}