From b502289eb2133cfbbdef8f04afa6d7261e17d32f Mon Sep 17 00:00:00 2001 From: Jialei Date: Wed, 29 Nov 2023 09:28:22 +0800 Subject: [PATCH] chore(ci): reduce client unit test for pydantic versions (#3043) --- .github/file-filter.yml | 1 + .github/workflows/client.yaml | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/file-filter.yml b/.github/file-filter.yml index 7e8d416906..ef7cca8abc 100644 --- a/.github/file-filter.yml +++ b/.github/file-filter.yml @@ -1,6 +1,7 @@ client: - "**/*.py" - "client/**" + - ".github/workflows/client.yaml" console: - "console/**" diff --git a/.github/workflows/client.yaml b/.github/workflows/client.yaml index 9d3bc17761..a3d20f77c5 100644 --- a/.github/workflows/client.yaml +++ b/.github/workflows/client.yaml @@ -102,9 +102,6 @@ jobs: os: - macos-latest - ubuntu-latest - pydantic-version: - - "1" - - "2" runs-on: ${{ matrix.os }} defaults: run: @@ -139,7 +136,9 @@ jobs: run: | make install-dev-req make install-sw - python -m pip install -U "pydantic==${{matrix.pydantic-version}}.*" + export PYDANTIC_VER=$(python -c 'import random;print(random.choice(["1.*", "2.*"]))') + echo "install ${PYDANTIC_VER} for unit tests" + python -m pip install -U "pydantic==${PYDANTIC_VER}" - name: Git Config run: |