Update Python versions for controller-only tests. (#74652)
* Update Python versions for controller-only tests. Both `ansible-galaxy` and `ansible-test` integration tests only run on the controller. * Use a venv to make requirements available.
This commit is contained in:
parent
7b0c4845d9
commit
d244e47822
2 changed files with 6 additions and 4 deletions
|
@ -147,8 +147,9 @@ stages:
|
|||
nameFormat: Python {0}
|
||||
testFormat: galaxy/{0}/1
|
||||
targets:
|
||||
- test: 2.7
|
||||
- test: 3.6
|
||||
- test: 3.8
|
||||
- test: 3.9
|
||||
- test: '3.10'
|
||||
- stage: Generic
|
||||
dependsOn: []
|
||||
jobs:
|
||||
|
@ -157,8 +158,9 @@ stages:
|
|||
nameFormat: Python {0}
|
||||
testFormat: generic/{0}/1
|
||||
targets:
|
||||
- test: 2.7
|
||||
- test: 3.8
|
||||
- test: 3.9
|
||||
- test: '3.10'
|
||||
- stage: Incidental_Remote
|
||||
displayName: Incidental Remote
|
||||
dependsOn: []
|
||||
|
|
|
@ -7,7 +7,7 @@ cd "${WORK_DIR}/ansible_collections/ns/col"
|
|||
|
||||
# common args for all tests
|
||||
# because we are running in shippable/generic/ we are already in the default docker container
|
||||
common=(--python "${ANSIBLE_TEST_PYTHON_VERSION}" --color --truncate 0 "${@}")
|
||||
common=(--python "${ANSIBLE_TEST_PYTHON_VERSION}" --venv --venv-system-site-packages --color --truncate 0 "${@}")
|
||||
|
||||
# prime the venv to work around issue with PyYAML detection in ansible-test
|
||||
ansible-test sanity "${common[@]}" --test ignores
|
||||
|
|
Loading…
Reference in a new issue