Fix build error 94/12794/3
authorsubhash kumar singh <subh.singh@samsung.com>
Mon, 29 Apr 2024 16:16:50 +0000 (16:16 +0000)
committersubhash kumar singh <subh.singh@samsung.com>
Mon, 6 May 2024 13:13:27 +0000 (13:13 +0000)
Updated python version to 3.10 and fix build error.

Change-Id: I7168414526d889ac82f6a80de9f3686e6287389d
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
.github/workflows/gerrit-verify.yaml
requirements.txt
tox.ini

index 2dc5c84..006eacc 100644 (file)
@@ -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() }}
index bab7db6..69035ae 100644 (file)
@@ -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 (file)
--- 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