Skip to content

Commit 2ee19ec

Browse files
committed
đź‘· Tweak tests format to use the same style as FastAPI for conditional installs
1 parent 6ade0a6 commit 2ee19ec

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ jobs:
6464
with:
6565
limit-access-to-actor: true
6666
- name: Install Dependencies
67-
run: |
68-
uv pip install -r requirements-tests.txt
69-
if [ "${{ matrix.pydantic-version }}" = "v1" ]; then
70-
uv pip install "pydantic<2.0.0"
71-
fi
67+
run: uv pip install -r requirements-tests.txt
68+
- name: Install Pydantic v1
69+
if: matrix.pydantic-version == 'v1'
70+
run: uv pip install "pydantic<2.0.0"
7271
- name: Lint
7372
run: bash scripts/lint.sh
7473
- run: mkdir coverage

0 commit comments

Comments
 (0)