From 785acdc0dac065f871a8a6aec4f3d622f9399f9e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 30 Jan 2023 21:36:53 +0100 Subject: [PATCH] fix python version for ansible sanity test --- .drone.jsonnet | 5 +++-- .drone.yml | 12 +++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 1e3e142..f52ae4a 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -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', diff --git a/.drone.yml b/.drone.yml index 16e07f1..0aad505 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 ...