Skip to content

Commit

Permalink
chore(ci): reduce client unit test for pydantic versions (#3043)
Browse files Browse the repository at this point in the history
  • Loading branch information
jialeicui authored Nov 29, 2023
1 parent 0607171 commit b502289
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/file-filter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
client:
- "**/*.py"
- "client/**"
- ".github/workflows/client.yaml"

console:
- "console/**"
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ jobs:
os:
- macos-latest
- ubuntu-latest
pydantic-version:
- "1"
- "2"
runs-on: ${{ matrix.os }}
defaults:
run:
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit b502289

Please sign in to comment.