You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tsfile.apache.org by ja...@apache.org on 2026/04/21 11:15:04 UTC

(tsfile) branch develop updated: [CI] Expand Python unit-test matrix to 3.9/3.11/3.14 (#790)

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

JackieTien97 pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git


The following commit(s) were added to refs/heads/develop by this push:
     new 1c6fa3c2 [CI] Expand Python unit-test matrix to 3.9/3.11/3.14 (#790)
1c6fa3c2 is described below

commit 1c6fa3c2493dacc403486b8e8138b927b11e36b6
Author: Hongzhi Gao <ho...@apache.org>
AuthorDate: Tue Apr 21 19:14:58 2026 +0800

    [CI] Expand Python unit-test matrix to 3.9/3.11/3.14 (#790)
---
 .github/workflows/unit-test-python.yml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/unit-test-python.yml b/.github/workflows/unit-test-python.yml
index c29764ab..b17ba4ff 100644
--- a/.github/workflows/unit-test-python.yml
+++ b/.github/workflows/unit-test-python.yml
@@ -44,6 +44,7 @@ jobs:
       max-parallel: 15
       matrix:
         os: [ ubuntu-latest, macos-latest, windows-latest ]
+        python-version: ["3.9", "3.11", "3.14"]
     runs-on: ${{ matrix.os }}
 
     steps:
@@ -54,7 +55,7 @@ jobs:
       - name: Set up Python
         uses: actions/setup-python@v6
         with:
-          python-version: "3.11"
+          python-version: ${{ matrix.python-version }}
 
       # Setup caching of the artifacts in the .m2 directory, so they don't have to
       # all be downloaded again for every build.
@@ -106,11 +107,15 @@ jobs:
           if [[ "$RUNNER_OS" == "Windows" ]]; then
             export PATH="/c/mingw64/bin:$PATH"
           fi
-          ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -P with-python -Denable.asan=OFF -Dbuild.type=Release clean verify
+          BLACK_VER_PROP=""
+          if [[ "${{ matrix.python-version }}" == "3.9" ]]; then
+            BLACK_VER_PROP="-Dblack.version=25.11.0"
+          fi
+          ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -P with-python -Denable.asan=OFF -Dbuild.type=Release clean verify ${BLACK_VER_PROP}
 
       - name: Upload whl Artifact
         uses: actions/upload-artifact@v7
         with:
-          name: tsfile-${{ runner.os }}-whl
+          name: tsfile-${{ runner.os }}-py${{ matrix.python-version }}-whl
           path: python/dist/tsfile-*.whl
           retention-days: 1