Fix full integration test

* Update full-integration-test.yml

* Create requirements.yml

* Update full-integration-test.yml

* tests with req.txt

* update tests

* fix python

* test with excludes

* update ci tests

* test

* update

* update

* remove codegov

* update
This commit is contained in:
Ishan Jain 2022-08-29 16:01:26 +05:30 committed by GitHub
parent e18467249a
commit daf3b49093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 23 deletions

View File

@ -32,7 +32,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v3 uses: actions/setup-python@v3
with: with:
python-version: '3.9' python-version: '3.10'
- name: Install ansible-base (${{ matrix.ansible }}) - name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
@ -41,25 +41,17 @@ jobs:
run: ansible-test sanity --docker -v --color --coverage run: ansible-test sanity --docker -v --color --coverage
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Generate coverage report
run: ansible-test coverage xml -v --requirements --group-by command --group-by version
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
integration: integration:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Integration ${{ matrix.ansible }}-py${{ matrix.python }}) name: Integration (Ⓐ${{ matrix.ansible }}-py${{ matrix.python }})
strategy: strategy:
fail-fast: false fail-fast: true
max-parallel: 1 max-parallel: 1
matrix: matrix:
ansible: ansible:
- stable-2.13 - stable-2.13
python: python:
- '3.9' - '3.10'
steps: steps:
- name: Check out code - name: Check out code
@ -80,7 +72,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: ${{ matrix.python }}
- name: Install ansible-base (${{ matrix.ansible }}) - name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

View File

@ -11,9 +11,9 @@ jobs:
integration: integration:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: ${{ matrix.ansible }}-py${{ matrix.python }}) name: ${{ matrix.ansible }}-py${{ matrix.python }}
strategy: strategy:
fail-fast: false fail-fast: true
max-parallel: 1 max-parallel: 1
matrix: matrix:
ansible: ansible:
@ -22,8 +22,7 @@ jobs:
- stable-2.11 - stable-2.11
- stable-2.12 - stable-2.12
- stable-2.13 - stable-2.13
# - devel - devel
# - milestone
python: python:
- '2.7' - '2.7'
- '3.5' - '3.5'
@ -31,6 +30,7 @@ jobs:
- '3.7' - '3.7'
- '3.8' - '3.8'
- '3.9' - '3.9'
- '3.10'
exclude: exclude:
- ansible: stable-2.9 - ansible: stable-2.9
python: '3.9' python: '3.9'
@ -60,10 +60,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: '3.10'
- name: Install requests
run: pip install requests
- name: Install ansible-base (${{ matrix.ansible }}) - name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

View File

@ -0,0 +1 @@
requests