fix python version for ansible sanity test
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Robert Kaussow 2023-01-30 21:36:53 +01:00
parent 5e347bf06b
commit 785acdc0da
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 10 additions and 7 deletions

View File

@ -18,7 +18,7 @@ local PythonVersion(pyversion='3.8') = {
local AnsibleVersion(version='devel') = {
local gitversion = if version == 'devel' then 'devel' else 'stable-' + version,
name: 'ansible-' + std.strReplace(version, '.', ''),
image: 'python:3.8',
image: 'python:3.9',
environment: {
PY_COLORS: 1,
},
@ -27,7 +27,8 @@ local AnsibleVersion(version='devel') = {
'poetry config experimental.new-installer false',
'poetry install',
'poetry run pip install https://github.com/ansible/ansible/archive/' + gitversion + '.tar.gz --disable-pip-version-check',
'ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8',
'poetry run ansible --version',
'poetry run ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8',
],
depends_on: [
'clone',

View File

@ -111,26 +111,28 @@ platform:
steps:
- name: ansible-devel
image: python:3.8
image: python:3.9
commands:
- pip install poetry -qq
- poetry config experimental.new-installer false
- poetry install
- poetry run pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
- ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8
- poetry run ansible --version
- poetry run ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8
environment:
PY_COLORS: 1
depends_on:
- clone
- name: ansible-214
image: python:3.8
image: python:3.9
commands:
- pip install poetry -qq
- poetry config experimental.new-installer false
- poetry install
- poetry run pip install https://github.com/ansible/ansible/archive/stable-2.14.tar.gz --disable-pip-version-check
- ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8
- poetry run ansible --version
- poetry run ansible-test sanity --exclude .chglog/ --exclude .drone.yml --python 3.8
environment:
PY_COLORS: 1
depends_on:
@ -270,6 +272,6 @@ depends_on:
---
kind: signature
hmac: f8056d1063e4f27d6d1b2395518a9654a462b0291c5425b375442873d5e3a740
hmac: 87490bf3f8efaf81aaebf6148b44043dc005b9dead3a85bada90ae7160f6ad46
...