From: garciadeblas Date: Thu, 25 Jan 2024 13:38:06 +0000 (+0100) Subject: Run tox in parallel and fix setup to use specific pyangbind version X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F14169%2F2;p=osm%2FIM.git Run tox in parallel and fix setup to use specific pyangbind version Change-Id: I6f02f0137798c0d282550f8bbaa44cd499d4fefa Signed-off-by: garciadeblas --- 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 #######################################################################################