From c19658d4a046d22428c6567f9115b0f0b7490dc1 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Wed, 10 Apr 2024 13:48:36 +0200 Subject: [PATCH] Add Ci/CD on custom conda env for operator --- .github/workflows/ci.yml | 4 ++++ examples/python-operator-dataflow/dataflow.yml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17b3e9942..c6bd86540 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -141,7 +141,11 @@ jobs: python-version: "3.10" - name: "Python Dataflow example" run: cargo run --example python-dataflow + - uses: conda-incubator/setup-miniconda@v2 + with: + auto-activate-base: false - name: "Python Operator Dataflow example" + shell: bash -l {0} run: cargo run --example python-operator-dataflow # ROS2 bridge examples diff --git a/examples/python-operator-dataflow/dataflow.yml b/examples/python-operator-dataflow/dataflow.yml index 400f881f5..ba367da22 100644 --- a/examples/python-operator-dataflow/dataflow.yml +++ b/examples/python-operator-dataflow/dataflow.yml @@ -19,7 +19,9 @@ nodes: - id: plot operator: - python: plot.py + python: + source: plot.py + conda_env: base inputs: image: webcam/image bbox: object_detection/bbox