@@ -368,49 +368,8 @@ jobs:
368
368
TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
369
369
TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
370
370
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
-
412
371
publish-test-results :
413
- needs : ["java-sdk", "python-sdk", "go-sdk" ]
372
+ needs : ["java-sdk", "python-sdk"]
414
373
# the action will only run on 4paradigm/OpenMLDB's context, not for fork repo or dependabot
415
374
if : >
416
375
always() && github.event_name == 'push' || (
@@ -426,7 +385,7 @@ jobs:
426
385
comment_title : SDK Test Report
427
386
428
387
publish-coverage-results :
429
- needs : ["java-sdk", "python-sdk", "go-sdk" ]
388
+ needs : ["java-sdk", "python-sdk"]
430
389
runs-on : ubuntu-latest
431
390
steps :
432
391
- uses : actions/checkout@v4
@@ -445,16 +404,10 @@ jobs:
445
404
name : coverage-python-report-${{ github.sha }}
446
405
path : python
447
406
448
- - name : Download Artifacts (go)
449
- uses : actions/download-artifact@v3
450
- with :
451
- name : coverage-go-report-${{ github.sha }}
452
- path : go
453
-
454
407
- name : Upload Coverage Report
455
408
uses : codecov/codecov-action@v4
456
409
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
458
411
name : coverage-sdk
459
412
token : ${{ secrets.CODECOV_TOKEN }}
460
413
fail_ci_if_error : true
0 commit comments