You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/04/02 07:20:02 UTC

[iotdb] 01/01: Add Python client CI

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch add_py_test_ci
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 7a9867b518132c02cf19ebb856bf84fac3334b8d
Author: HTHou <hh...@outlook.com>
AuthorDate: Sat Apr 2 15:19:07 2022 +0800

    Add Python client CI
---
 .github/workflows/{client.yml => client-cpp.yml} |  0
 .github/workflows/client-python.yml              | 60 ++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/.github/workflows/client.yml b/.github/workflows/client-cpp.yml
similarity index 100%
rename from .github/workflows/client.yml
rename to .github/workflows/client-cpp.yml
diff --git a/.github/workflows/client-python.yml b/.github/workflows/client-python.yml
new file mode 100644
index 0000000..a843765
--- /dev/null
+++ b/.github/workflows/client-python.yml
@@ -0,0 +1,60 @@
+# This workflow is just for checking whether modifications works for the Go client.
+
+name: Python Client
+
+on:
+  push:
+    branches:
+      - master
+      - 'rel/*'
+      - "new_*"
+    paths-ignore:
+      - 'docs/**'
+  pull_request:
+    branches:
+      - master
+      - 'rel/*'
+      - "new_*"
+    paths-ignore:
+      - 'docs/**'
+  # allow manually run the action:
+  workflow_dispatch:
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+env:
+  MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
+
+jobs:
+  unix:
+    strategy:
+      fail-fast: false
+      max-parallel: 20
+      matrix:
+        java: [ 11 ]
+        os: [ ubuntu-latest ]
+    runs-on: ${{ matrix.os}}
+
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          token: ${{secrets.GITHUB_TOKEN}}
+          submodules: recursive
+      - name: Set up JDK ${{ matrix.java }}
+        uses: actions/setup-java@v1
+        with:
+          java-version: ${{ matrix.java }}
+      - name: Cache Maven packages
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2-
+      - name: Compile IoTDB Server
+        run: mvn -B package -Dmaven.test.skip=true  -am -pl server
+      - name: Integration test
+        shell: bash
+        run: |
+          cd client-py && pytest .
\ No newline at end of file