Skip to content

Commit

Permalink
fix(plugin): fix tensorflow ut
Browse files Browse the repository at this point in the history
Signed-off-by: Jianxiang Ran <[email protected]>
  • Loading branch information
superrxan committed Dec 1, 2022
1 parent 934d970 commit 86257cb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/run_test_case.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected] extensions/sources/random/random.go
Expand All @@ -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:
Expand Down

0 comments on commit 86257cb

Please sign in to comment.