[ci] run unittests at py3.9 env

+ temporary turn off task-simple-job to unblock gates

Change-Id: If840fdd707ecc3dc3bc877a90cbbe8e91f3c9a80
This commit is contained in:
Andrey Kurilin 2021-12-28 14:01:54 +02:00
parent d7b091728b
commit 6c48e16724
4 changed files with 7 additions and 61 deletions

View File

@ -6,10 +6,11 @@
- rally-tox-py36
- rally-tox-py37
- rally-tox-py38
- rally-tox-py39
- rally-dsvm-tox-functional
- rally-openstack-docker-build
- rally-task-basic-with-existing-users
- rally-task-simple-job
#- rally-task-simple-job
- rally-task-barbican:
files:
- .zuul.d/zuul.yaml
@ -88,10 +89,11 @@
- rally-tox-py36
- rally-tox-py37
- rally-tox-py38
- rally-tox-py39
- rally-dsvm-tox-functional
- rally-openstack-docker-build
- rally-task-basic-with-existing-users
- rally-task-simple-job
#- rally-task-simple-job
- rally-task-barbican:
files:
- .zuul.d/zuul.yaml

View File

@ -1,58 +0,0 @@
- name: Check required version of Python
args:
chdir: "{{ zuul.project.src_dir }}"
shell:
executable: /bin/sh
cmd: |
set -e
iniget(){
local xtrace
xtrace=$(set +o | grep xtrace)
set +o xtrace
local section=$1
local file="tox.ini"
local option="basepython"
local line
line=$(sed -ne "/^\[$section\]/,/^\[.*\]/ { /^$option[ \t]*=/ p; }" "$file")
echo ${line#*= python}
$xtrace
}
tox_testenv_python=$(iniget 'testenv:{{ tox_env }}')
if [ "$tox_testenv_python" != "" ]; then
echo $tox_testenv_python
else
echo $(iniget 'testenv')
fi
register: python_version
- name: Install the proper python version
become: True
become_user: root
shell:
executable: /bin/sh
cmd: |
set -e
apt-get update
apt-get install python{{ python_version.stdout }}-dev --yes
- name: Install the proper python pip version
become: True
become_user: root
shell:
executable: /bin/bash
cmd: |
set -e
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python{{ python_version.stdout }} get-pip.py
- name: Install python tox
become: True
become_user: root
shell:
executable: /bin/bash
cmd: |
pip{{ python_version.stdout }} install tox

View File

@ -11,6 +11,5 @@
# pass a check at 'prepare-for-rally-task' role.
rally_task: "rally-jobs/simple-job.yaml"
roles:
- tox-install
- prepare-for-rally-task
- tox-run

View File

@ -41,6 +41,9 @@ basepython = python3.7
[testenv:py38]
basepython = python3.8
[testenv:py39]
basepython = python3.9
[testenv:venv]
basepython = python3