Skip to content

Commit

Permalink
Use env for excluding notebooks to test
Browse files Browse the repository at this point in the history
  • Loading branch information
kozubaeff committed May 3, 2024
1 parent 2552a9a commit 342fd4e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 342fd4e

Please sign in to comment.