diff --git a/.github/workflows/run_test_case.yaml b/.github/workflows/run_test_case.yaml index 9e7b1d0e2a..6c1b0cee68 100644 --- a/.github/workflows/run_test_case.yaml +++ b/.github/workflows/run_test_case.yaml @@ -42,11 +42,6 @@ jobs: mkdir -p plugins/wasm set -e -u -x mkdir -p data - mkdir -p data/test/uploads - cp extensions/functions/dependencies/tensorflow/models/* data/test/uploads/ - export CGO_CFLAGS=-I$(pwd)/extensions/functions/dependencies/tensorflow - export CGO_LDFLAGS=-L$(pwd)/extensions/functions/dependencies/tensorflow/amd64 - export LD_LIBRARY_PATH=$(pwd)/extensions/functions/dependencies/tensorflow/amd64 mkdir -p log sed -i -r "s/debug: .*/debug: true/1" etc/kuiper.yaml go build -modfile extensions.mod --buildmode=plugin -o plugins/sources/Random@v2.0.0.so extensions/sources/random/random.go @@ -63,6 +58,15 @@ jobs: cp -r sdk/python/example/pysam plugins/portable/pysam cp -r sdk/python/ekuiper plugins/portable/pysam/ go test --tags="edgex test" ./... + - name: run plugins test case + run: | + mkdir -p data/test/uploads + cp extensions/functions/dependencies/tensorflow/models/* data/test/uploads/ + export CGO_CFLAGS=-I$(pwd)/extensions/functions/dependencies/tensorflow + export CGO_LDFLAGS=-L$(pwd)/extensions/functions/dependencies/tensorflow/amd64 + export LD_LIBRARY_PATH=$(pwd)/extensions/functions/dependencies/tensorflow/amd64:$LD_LIBRARY_PATH + cd extensions + go test ./... - uses: actions/upload-artifact@v3 if: failure() with: