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: jobs:
sanity: sanity:
name: Sanity (Ⓐ${{ matrix.ansible }}) runs-on: ubuntu-latest
name: Sanity (Ⓐ$${{ matrix.ansible_version }})
timeout-minutes: 30
strategy: strategy:
matrix: matrix:
ansible: python_version: ["3.9"]
- stable-2.11 ansible_version: ["stable-2.13", "stable-2.14", "devel"]
- stable-2.12
- stable-2.13
- devel
runs-on: ubuntu-latest
steps: steps:
- name: Perform testing
- name: Check out code uses: ansible-community/ansible-test-gh-action@release/v1
uses: actions/checkout@v3
with: with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} ansible-core-version: ${{ matrix.ansible_version }}
origin-python-version: ${{ matrix.python_version }}
- name: Set up Python target-python-version: ${{ matrix.python_version }}
uses: actions/setup-python@v3 testing-type: sanity
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}}
integration: integration:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -79,4 +67,4 @@ jobs:
- name: Run integration test - name: Run integration test
run: ansible-test integration -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker --coverage 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}}