Update ci-test.yml
This commit is contained in:
parent
57833096fb
commit
e8e19fe2e3
34
.github/workflows/ci-test.yml
vendored
34
.github/workflows/ci-test.yml
vendored
@ -13,21 +13,33 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
sanity:
|
sanity:
|
||||||
runs-on: ubuntu-latest
|
name: Sanity (Ⓐ${{ matrix.ansible }})
|
||||||
name: Sanity (Ⓐ$${{ matrix.ansible_version }})
|
|
||||||
timeout-minutes: 30
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python_version: ["3.9"]
|
ansible:
|
||||||
ansible_version: ["stable-2.13", "stable-2.14", "devel"]
|
- stable-2.11
|
||||||
|
- stable-2.12
|
||||||
|
- stable-2.13
|
||||||
|
- devel
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Perform testing
|
|
||||||
uses: ansible-community/ansible-test-gh-action@release/v1
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ansible-core-version: ${{ matrix.ansible_version }}
|
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
|
||||||
origin-python-version: ${{ matrix.python_version }}
|
|
||||||
target-python-version: ${{ matrix.python_version }}
|
- name: Set up Python
|
||||||
testing-type: sanity
|
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}}
|
||||||
|
|
||||||
integration:
|
integration:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user