Browse Source

Reuse example virtual env

tags/v0.3.5-rc0
haixuanTao 2 years ago
parent
commit
faed55c42c
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      .github/workflows/ci.yml

+ 9
- 3
.github/workflows/ci.yml View File

@@ -318,9 +318,15 @@ jobs:
dora start dataflow.yml --name ci-python-test
sleep 10
dora stop --name ci-python-test --grace-duration 5s
pip install -r ../examples/python-dataflow/requirements.txt
dora start ../examples/python-dataflow/dataflow_dynamic.yml --name ci-python-dynamic
python ../examples/python-dataflow/plot_dynamic.py
cd ..
if [ ! -d "examples/.env/bin" ]; then # Reuse Example venv
mv examples/.env/Scripts examples/.env/bin # venv is placed under `Scripts` on Windows
fi
source examples/.env/bin/activate
dora destroy # Restart the daemon with the current virtual environment
dora up
dora start examples/python-dataflow/dataflow_dynamic.yml --name ci-python-dynamic
python examples/python-dataflow/plot_dynamic.py
sleep 5
dora stop --name ci-python-test --grace-duration 5s
dora destroy


Loading…
Cancel
Save