@@ -3,25 +3,25 @@ name: Build
33on :
44 push :
55 branches :
6- - ' main'
7- - ' 3.0'
6+ - " main"
7+ - " 3.0"
88 pull_request :
99 branches :
10- - ' main'
11- - ' 3.0'
10+ - " main"
11+ - " 3.0"
1212
1313jobs :
1414 test :
1515 runs-on : ubuntu-22.04
1616 steps :
1717 - name : Checkout
1818 uses : actions/checkout@v3
19-
19+
2020 - name : Get CMake
2121 uses : lukka/get-cmake@latest
2222 with :
2323 cmakeVersion : 3.31.6
24-
24+
2525 - name : Build tools
2626 run : |
2727 sudo apt-get update -y
@@ -62,15 +62,15 @@ jobs:
6262 # ----------------------------------------------
6363 - name : Install dependencies
6464 if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
65- run : |
65+ run : |
6666 poetry install --no-interaction --no-root
6767 poetry run pip install "numpy<2.0.0"
6868
6969 # ----------------------------------------------
7070 # install your root project, if required
7171 # ----------------------------------------------
7272 - name : Install library
73- run : |
73+ run : |
7474 poetry install --no-interaction --with=test
7575 poetry run pip install "numpy<2.0.0"
7676
@@ -84,15 +84,15 @@ jobs:
8484 id : determine-branch
8585 with :
8686 cond : ${{ github.base_ref == 'main' }}
87- if_true : ' 3.3.6 '
88- if_false : ' 3.0'
87+ if_true : " main "
88+ if_false : " 3.0"
8989
9090 - name : Checkout tdengine
9191 uses : actions/checkout@v2
9292 with :
9393 repository : " taosdata/TDengine"
9494 path : " TDengine_v3"
95- ref : ${{ steps.determine-branch.outputs.value }}
95+ ref : ${{ steps.determine-branch.outputs.value }}
9696
9797 - name : Build TDengine 3.0
9898 run : |
@@ -129,7 +129,7 @@ jobs:
129129 curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" localhost:6041/rest/sql
130130 poetry run pytest --cov-report term --cov-report html --cov-report xml --cov=taos --cov=taosrest --cov-append tests
131131
132- - name : ' Upload taosd logs'
132+ - name : " Upload taosd logs"
133133 if : failure()
134134 uses : actions/upload-artifact@v4
135135 with :
@@ -140,7 +140,7 @@ jobs:
140140 - name : Upload coverage to Codecov
141141 uses : codecov/codecov-action@v4
142142 with :
143- files : ./coverage.xml
143+ files : ./coverage.xml
144144 token : ${{ secrets.CODECOV_TOKEN }}
145145
146146 - name : Build Artifacts
0 commit comments