diff --git a/.github/workflows/unit-test-python.yml b/.github/workflows/unit-test-python.yml index c29764abf..b17ba4ffb 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