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 2024/09/11 02:01:15 UTC
(iotdb) 02/02: add CI
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch fix_python_client_pkg
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 20c1d2b311352bb9d32b162d467f0b8719820d0d
Author: HTHou <hh...@outlook.com>
AuthorDate: Wed Sep 11 10:00:28 2024 +0800
add CI
---
.github/workflows/multi-language-client.yml | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/multi-language-client.yml b/.github/workflows/multi-language-client.yml
index c3e1ff7ba2a..61943a9151a 100644
--- a/.github/workflows/multi-language-client.yml
+++ b/.github/workflows/multi-language-client.yml
@@ -140,6 +140,9 @@ jobs:
runs-on: ${{ (matrix.python == '3.6' && 'ubuntu-20.04') || 'ubuntu-latest' }}
steps:
+ - uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python }}
- uses: actions/checkout@v4
- name: Cache Maven packages
uses: actions/cache@v4
@@ -147,24 +150,28 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
+ - name: Cache pip packages
+ uses: actions/cache@v4
+ with:
+ path: ${{ steps.pip-cache.outputs.dir }}
+ key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
+ restore-keys: ${{ runner.os }}-pip-
- name: Build IoTDB server distribution zip and python client
run: mvn -B clean install -pl distribution,iotdb-client/client-py -am -DskipTests
- name: Build IoTDB server docker image
run: |
docker build . -f docker/src/main/Dockerfile-1c1d -t "iotdb:dev"
docker images
- - uses: actions/setup-python@v5
- with:
- python-version: ${{ matrix.python }}
- name: Install IoTDB python client requirements
run: pip3 install -r iotdb-client/client-py/requirements_dev.txt
- - name: Check code style
+ - name: Check code style and test make package
if: ${{ matrix.python == '3.x'}}
shell: bash
- run: black iotdb-client/client-py/ --check --diff
+ run: |
+ black iotdb-client/client-py/ --check --diff
+ ./iotdb-client/client-py/release.sh
- name: Integration test
shell: bash
- run: |
- cd iotdb-client/client-py/ && pytest .
+ run: pytest iotdb-client/client-py