Run tox in parallel and fix setup to use specific pyangbind version 69/14169/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 25 Jan 2024 13:38:06 +0000 (14:38 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 25 Jan 2024 17:06:43 +0000 (18:06 +0100)
Change-Id: I6f02f0137798c0d282550f8bbaa44cd499d4fefa
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
devops-stages/stage-test.sh
setup.py
tox.ini

index 067d896..eee57ff 100755 (executable)
@@ -16,5 +16,6 @@
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-OUTPUT=$(TOX_PARALLEL_NO_SPINNER=1 tox --parallel=auto)
-printf "$OUTPUT"
+echo "Launching tox"
+TOX_PARALLEL_NO_SPINNER=1 tox --parallel=auto
+
index ec75988..8150d9f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -30,8 +30,8 @@ class Install_osm_im(install):
         subprocess.call([sys.executable, "-m", "pip", "install", package])
 
     def run(self):
-        self.pipinstall('pyang')
-        self.pipinstall('pyangbind')
+        self.pipinstall('pyang==2.5.2')
+        self.pipinstall('pyangbind==0.8.1')
         import pyangbind
         print("Using dir {}/{} for python artifacts".format(os.getcwd(), self.im_dir))
         path = "{}/{}".format(os.getcwd(), self.im_dir)
diff --git a/tox.ini b/tox.ini
index f1cf7c9..ea045a8 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -29,6 +29,7 @@ setenv = VIRTUAL_ENV={envdir}
 passenv = HOME
 deps =  -r{toxinidir}/requirements.txt
 skip_install = true
+parallel_show_output = true
 
 
 #######################################################################################