From 8aef22e6e453948e531839cb5cd3f8bd9336f9d8 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 25 Jan 2024 14:38:06 +0100 Subject: [PATCH] Run tox in parallel and fix setup to use specific pyangbind version Change-Id: I6f02f0137798c0d282550f8bbaa44cd499d4fefa Signed-off-by: garciadeblas --- devops-stages/stage-test.sh | 5 +++-- setup.py | 4 ++-- tox.ini | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/devops-stages/stage-test.sh b/devops-stages/stage-test.sh index 067d896..eee57ff 100755 --- a/devops-stages/stage-test.sh +++ b/devops-stages/stage-test.sh @@ -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 + diff --git a/setup.py b/setup.py index ec75988..8150d9f 100644 --- 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 --- 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 ####################################################################################### -- 2.25.1