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:
parent
e18467249a
commit
daf3b49093
18
.github/workflows/ci-test.yml
vendored
18
.github/workflows/ci-test.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: '3.9'
|
||||
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
|
||||
@ -41,25 +41,17 @@ jobs:
|
||||
run: ansible-test sanity --docker -v --color --coverage
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
name: Integration ${{ matrix.ansible }}-py${{ matrix.python }})
|
||||
name: Integration (Ⓐ${{ matrix.ansible }}-py${{ matrix.python }})
|
||||
strategy:
|
||||
fail-fast: false
|
||||
fail-fast: true
|
||||
max-parallel: 1
|
||||
matrix:
|
||||
ansible:
|
||||
- stable-2.13
|
||||
python:
|
||||
- '3.9'
|
||||
- '3.10'
|
||||
|
||||
steps:
|
||||
- name: Check out code
|
||||
@ -80,7 +72,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: ${{ matrix.python }}
|
||||
|
||||
- name: Install ansible-base (${{ matrix.ansible }})
|
||||
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
|
||||
|
13
.github/workflows/full-integration-test.yml
vendored
13
.github/workflows/full-integration-test.yml
vendored
@ -11,9 +11,9 @@ jobs:
|
||||
|
||||
integration:
|
||||
runs-on: ubuntu-latest
|
||||
name: ${{ matrix.ansible }}-py${{ matrix.python }})
|
||||
name: ${{ matrix.ansible }}-py${{ matrix.python }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
fail-fast: true
|
||||
max-parallel: 1
|
||||
matrix:
|
||||
ansible:
|
||||
@ -22,8 +22,7 @@ jobs:
|
||||
- stable-2.11
|
||||
- stable-2.12
|
||||
- stable-2.13
|
||||
# - devel
|
||||
# - milestone
|
||||
- devel
|
||||
python:
|
||||
- '2.7'
|
||||
- '3.5'
|
||||
@ -31,6 +30,7 @@ jobs:
|
||||
- '3.7'
|
||||
- '3.8'
|
||||
- '3.9'
|
||||
- '3.10'
|
||||
exclude:
|
||||
- ansible: stable-2.9
|
||||
python: '3.9'
|
||||
@ -60,10 +60,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
|
||||
- name: Install requests
|
||||
run: pip install requests
|
||||
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
|
||||
|
1
tests/integration/requirements.txt
Normal file
1
tests/integration/requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
requests
|
Loading…
Reference in New Issue
Block a user