Updated python version to 3.10 and fix build error.
Change-Id: I7168414526d889ac82f6a80de9f3686e6287389d
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
TOX_ENVS: '["code"]'
- PYTHON_VERSION: '3.8'
+ PYTHON_VERSION: '3.10'
vote:
if: ${{ always() }}
Flask==2.0.1
Flask-API==3.0.post1
Flask-RESTful==0.3.9
-PyYAML==3.12
+PyYAML
# basic test and coverage job
[testenv:code]
allowlist_externals = git
-basepython = python3.8
+basepython = python3.10
deps=
pytest
coverage
Werkzeug==2.2.2
urllib3~=1.26.15
-
+setenv = cd = {toxinidir}/tests
commands =
+ #pip3 install -e {toxinidir}
+
pytest --cov-report term-missing --cov-report xml --cov-report html --cov-fail-under=30 --junitxml=/tmp/tests.xml --cov={toxinidir}/dataextraction/
coverage xml -i