forked from 4paradigm/OpenMLDB
-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (71 loc) · 1.81 KB
/
coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: coverage
on:
push:
branches:
- main
paths-ignore:
- docs/
- demo/
- release/
- image/
- tools/
- "*.md"
pull_request:
paths-ignore:
- docs/
- demo/
- release/
- image/
- tools/
- "*.md"
workflow_dispatch:
jobs:
coverage:
runs-on: self-hosted
container:
image: ghcr.io/4paradigm/hybridsql:0.5
env:
CTEST_PARALLEL_LEVEL: 1 # parallel test level for ctest (make test)
CMAKE_BUILD_TYPE: Debug
SQL_PYSDK_ENABLE: OFF
SQL_JAVASDK_ENABLE: ON
TESTING_ENABLE: ON
NPROC: 8
SPARK_HOME: /tmp/spark/
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('java/**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: coverage configure
run: |
make coverage-configure
- name: build openmldb
run: |
cmake --build build --target openmldb -- -j${{ env.NPROC }}
- name: start service
run: |
sh steps/ut_zookeeper.sh start
sh steps/download_openmldb_spark.sh $SPARK_HOME
cd onebox
bash start_onebox.sh
- name: Build and Coverage
run: |
make coverage
- name: Upload Coverage Report
uses: codecov/codecov-action@v2
with:
files: build/coverage.info,java/**/target/site/jacoco/jacoco.xml,java/**/target/scoverage.xml
name: coverage
fail_ci_if_error: true
verbose: true
- name: stop service
run: |
./onebox/stop_all.sh
sh steps/ut_zookeeper.sh stop