diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index d86e6c37..f13d25e5 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -20,6 +20,7 @@ jobs: eval $(minikube -p minikube docker-env) echo "Glibc version" ldd --version + sudo apt-get install python3-lxml echo "Installing helm..." wget https://get.helm.sh/helm-v3.12.1-linux-amd64.tar.gz gunzip helm-v3.12.1-linux-amd64.tar.gz @@ -113,8 +114,11 @@ jobs: kubectl delete resourcecomposition wordpress-service-composition --kubeconfig=kubeplus-saas-provider.json echo "Running tests..starting in 5 seconds" sleep 5 - source venv/bin/activate cd tests + python3 -m venv venv + source venv/bin/activate + pip3 install -r requirements.txt python3 -m unittest -v tests + deactivate cd ../.. mv kubeplus $runner_dir diff --git a/requirements.txt b/requirements.txt index ec1dbbb7..4818cc54 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1 @@ -pyyaml -kubernetes -bs4 -lxml -select \ No newline at end of file +pyyaml \ No newline at end of file diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100644 index 00000000..487f1efc --- /dev/null +++ b/tests/requirements.txt @@ -0,0 +1,4 @@ +pyyaml +kubernetes +bs4 +select \ No newline at end of file