Update ci-test.yml
This commit is contained in:
parent
f36102f807
commit
91eb91f4e9
36
.github/workflows/ci-test.yml
vendored
36
.github/workflows/ci-test.yml
vendored
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user