From 87e3d2a5a218b59b18f6e34a4084885bad3991a4 Mon Sep 17 00:00:00 2001 From: Armin Stepanjan Date: Mon, 4 Dec 2023 16:26:09 +0000 Subject: [PATCH] Use venv's python executable Current ci_build.sh uses the global python executable. If pytest and flake8 are not globally installed `mvn test` will fail. This commit fixes that. covered by: cerebral-armins-stepanjans.dco --- NOTICE.txt | 2 ++ dco/cerebral-armins_stepanjans.dco | 10 ++++++++++ dmn-tck-it/dmn-tck-it-python-translator/ci_build.sh | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 dco/cerebral-armins_stepanjans.dco diff --git a/NOTICE.txt b/NOTICE.txt index 1d38c3db0..b01377a7d 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -4,3 +4,5 @@ Licensed under Apache 2.0 license This product includes software developed at The Apache Software Foundation (http://www.apache.org/). + +This product contains code copyright Cerebral Adaptive Forecasting, licensed under Apache 2.0 license. diff --git a/dco/cerebral-armins_stepanjans.dco b/dco/cerebral-armins_stepanjans.dco new file mode 100644 index 000000000..f38d30759 --- /dev/null +++ b/dco/cerebral-armins_stepanjans.dco @@ -0,0 +1,10 @@ +1) I, Armins Stepanjans, certify that all work committed with the commit message +"covered by: cerebral-armins_stepanjans.dco" is copyright +Cerebral Adaptive Forecasting and that I am authorized by Cerebral Adaptive Forecasting +to contribute this code under the Apache 2.0 license. + +2) I understand and agree all contribution including all personal +information I submit with it is maintained indefinitely and may be +redistributed consistent with the open source license(s) involved. + +This certification is effective for all code contributed from 2023-12-04 to 9999-01-01. diff --git a/dmn-tck-it/dmn-tck-it-python-translator/ci_build.sh b/dmn-tck-it/dmn-tck-it-python-translator/ci_build.sh index c858e4605..7a6b633fe 100755 --- a/dmn-tck-it/dmn-tck-it-python-translator/ci_build.sh +++ b/dmn-tck-it/dmn-tck-it-python-translator/ci_build.sh @@ -18,7 +18,7 @@ fi pwd ls -la -python -m pytest +.venv/bin/python -m pytest status=$? if [ $status -eq 0 ] then @@ -27,7 +27,7 @@ else echo "pytest failed" exit 1 fi -python -m flake8 +.venv/bin/python -m flake8 status=$? if [ $status -eq 0 ] then