-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jianxiang Ran <[email protected]>
- Loading branch information
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|