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