From 342fd4e81f1237d74f719c332ed6b55a6081f6e1 Mon Sep 17 00:00:00 2001 From: Nurmukhammad Kozubaev Date: Fri, 3 May 2024 15:59:01 +0300 Subject: [PATCH] Use env for excluding notebooks to test --- .github/workflows/test.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d20be46..d13cd2e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -9,6 +9,7 @@ env: YC_DEMO_REGISTRY_ID: ${{ vars.YC_DEMO_REGISTRY_ID }} HELM_CHART_VERSION: ${{ vars.HELM_CHART_VERSION }} CONTOUR: testing + EXCLUDE_NOTEBOOKS: ${{ vars.EXCLUDE_NOTEBOOKS }} jobs: start-vm: name: Start VM @@ -92,8 +93,11 @@ jobs: export PYTHONPATH="${PYTHONPATH}:$(pwd)" pytest -rA --log-cli-level=INFO --log-level=INFO tests/* - POD_NAME=$(kubectl -n ${namespace} get pods --selector=name=jupyterlab -o=name) - kubectl -n ${namespace} exec -it $POD_NAME -- pytest /home/jovyan/test.py + + kubectl -n ${namespace} set env sts/jupyterlab EXCLUDE_NOTEBOOKS=$EXCLUDE_NOTEBOOKS + sleep 15 + JUPYTER_POD_NAME=$(kubectl -n ${namespace} get pods --selector=name=jupyterlab -o=name) + kubectl -n ${namespace} exec -it $JUPYTER_POD_NAME -- pytest /home/jovyan/test.py clean-up: name: Clean up