diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 5a574101..55dd4c72 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -81,6 +81,34 @@ jobs: (github.event_name == 'push' && steps.cache-server-push.outputs.cache-hit != 'true') run: brew install argp-standalone pkgconfig geos + - name: Set up homebrew + if: | + github.event_name == 'pull_request' + || github.event_name == 'push' + || github.event_name == 'schedule' + run: | + brew update + brew install --overwrite argp-standalone pkg-config + brew info argp-standalone + + - name: Set up Go + if: | + github.event_name == 'pull_request' + || github.event_name == 'push' + || github.event_name == 'schedule' + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Set up Rust + if: | + github.event_name == 'pull_request' + || github.event_name == 'push' + || github.event_name == 'schedule' + uses: actions-rs/toolchain@v1.0.6 + with: + toolchain: stable + - name: install TDengine if: > (github.event_name == 'workflow_dispatch' && steps.cache-server-manually.outputs.cache-hit != 'true') || diff --git a/.github/workflows/test-ubuntu-2004.yml b/.github/workflows/test-ubuntu-2004.yml index 8da980ac..2e85dab9 100644 --- a/.github/workflows/test-ubuntu-2004.yml +++ b/.github/workflows/test-ubuntu-2004.yml @@ -87,8 +87,8 @@ jobs: - name: Build TDengine 3.0 run: | - echo ${{ secrets.CLOUD_TOKEN }} - echo $CLOUD_DSN + export CLOUD_DSN=${{ secrets.CLOUD_TOKEN }} + echo "dsn=$CLOUD_DSN" cd TDengine_v3 mkdir build @@ -116,7 +116,12 @@ jobs: - name: Test 3.0 run: | export LD_LIBRARY_PATH=$PWD/TDengine_v3/build/build/lib - echo $CLOUD_DSN + export CLOUD_DSN=${{ secrets.CLOUD_TOKEN }} + echo "dsn=$CLOUD_DSN" + pytest taos-ws-py/tests/test_cloud.py + + echo "---------- test end for test_cloud.py -------------" + #source $VENV export TDENGINE_URL=localhost:6041 curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" localhost:6041/rest/sql