@@ -368,49 +368,8 @@ jobs:
368368 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
369369 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
370370
371- go-sdk :
372- runs-on : ubuntu-latest
373- container :
374- image : ghcr.io/4paradigm/hybridsql:latest
375- env :
376- OPENMLDB_BUILD_TARGET : " openmldb"
377- OPENMLDB_MODE : standalone
378- steps :
379- - uses : actions/checkout@v2
380-
381- - uses : actions/setup-go@v3
382- with :
383- go-version : 1.18
384-
385- - name : build openmldb
386- run : make build install
387-
388- - name : start server
389- run : ./openmldb/sbin/start-all.sh
390-
391- - name : init test database
392- env :
393- OPENMLDB_NS_HOST : 127.0.0.1
394- OPENMLDB_NS_PORT : 6527
395- run : |
396- echo "CREATE DATABASE test_db;" | ./openmldb/bin/openmldb --host=$OPENMLDB_NS_HOST --port=$OPENMLDB_NS_PORT
397-
398- - name : go test
399- env :
400- OPENMLDB_APISERVER_HOST : 127.0.0.1
401- OPENMLDB_APISERVER_PORT : 8080
402- working-directory : go
403- run : go test ./... -race -covermode=atomic -coverprofile=coverage.out
404-
405- - name : upload coverage
406- uses : actions/upload-artifact@v3
407- with :
408- name : coverage-go-report-${{ github.sha }}
409- path : go/coverage.out
410- retention-days : 3
411-
412371 publish-test-results :
413- needs : ["java-sdk", "python-sdk", "go-sdk" ]
372+ needs : ["java-sdk", "python-sdk"]
414373 # the action will only run on 4paradigm/OpenMLDB's context, not for fork repo or dependabot
415374 if : >
416375 always() && github.event_name == 'push' || (
@@ -426,7 +385,7 @@ jobs:
426385 comment_title : SDK Test Report
427386
428387 publish-coverage-results :
429- needs : ["java-sdk", "python-sdk", "go-sdk" ]
388+ needs : ["java-sdk", "python-sdk"]
430389 runs-on : ubuntu-latest
431390 steps :
432391 - uses : actions/checkout@v4
@@ -445,16 +404,10 @@ jobs:
445404 name : coverage-python-report-${{ github.sha }}
446405 path : python
447406
448- - name : Download Artifacts (go)
449- uses : actions/download-artifact@v3
450- with :
451- name : coverage-go-report-${{ github.sha }}
452- path : go
453-
454407 - name : Upload Coverage Report
455408 uses : codecov/codecov-action@v4
456409 with :
457- files : go/coverage.out, python/openmldb_sdk/tests/coverage.xml,python/openmldb_tool/tests/coverage.xml,java/**/target/site/jacoco/jacoco.xml,java/**/target/scoverage.xml
410+ files : python/openmldb_sdk/tests/coverage.xml,python/openmldb_tool/tests/coverage.xml,java/**/target/site/jacoco/jacoco.xml,java/**/target/scoverage.xml
458411 name : coverage-sdk
459412 token : ${{ secrets.CODECOV_TOKEN }}
460413 fail_ci_if_error : true
0 commit comments