From: subhash kumar singh Date: Mon, 29 Apr 2024 16:16:50 +0000 (+0000) Subject: Fix build error X-Git-Tag: 2.0.0~2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=7d7ce2f87bd4bd3f5e42573e1c2ca37cb4498ad1;p=aiml-fw%2Fathp%2Fdata-extraction.git Fix build error Updated python version to 3.10 and fix build error. Change-Id: I7168414526d889ac82f6a80de9f3686e6287389d Signed-off-by: subhash kumar singh --- diff --git a/.github/workflows/gerrit-verify.yaml b/.github/workflows/gerrit-verify.yaml index 2dc5c84..006eacc 100644 --- a/.github/workflows/gerrit-verify.yaml +++ b/.github/workflows/gerrit-verify.yaml @@ -81,7 +81,7 @@ jobs: GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }} GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }} TOX_ENVS: '["code"]' - PYTHON_VERSION: '3.8' + PYTHON_VERSION: '3.10' vote: if: ${{ always() }} diff --git a/requirements.txt b/requirements.txt index bab7db6..69035ae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,4 +9,4 @@ jsonpickle==2.0.0 Flask==2.0.1 Flask-API==3.0.post1 Flask-RESTful==0.3.9 -PyYAML==3.12 +PyYAML diff --git a/tox.ini b/tox.ini index fe47c22..b7feea4 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ skipsdist = true # basic test and coverage job [testenv:code] allowlist_externals = git -basepython = python3.8 +basepython = python3.10 deps= pytest coverage @@ -43,8 +43,10 @@ deps= 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