Skip to content

Commit 942f7cf

Browse files
committed
Run tests against pydantic v1 first and THEN v2
1 parent 13aeb06 commit 942f7cf

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/cicd.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,13 @@ jobs:
4646
run: |
4747
python -m pip install -U pip wheel pytest pytest-cov coverage
4848
python -m pip install -U .
49-
- name: Run tests
49+
- name: Run tests using pydantic<2.0.0
5050
run: |
51+
python -m pip install 'pydantic<2'
52+
python -m pytest
53+
- name: Run tests using pydantic@latest
54+
run: |
55+
python -m pip install -U pydantic
5156
python -m pytest --cov=pydantic2ts
5257
- name: Generate LCOV File
5358
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' }}
@@ -59,12 +64,6 @@ jobs:
5964
with:
6065
github-token: ${{ secrets.GITHUB_TOKEN }}
6166
path-to-lcov: coverage.lcov
62-
- name: Install pydantic<2
63-
run: |
64-
python -m pip install 'pydantic<2'
65-
- name: Run tests against pydantic<2
66-
run: |
67-
python -m pytest
6867
deploy:
6968
name: Deploy to PyPi
7069
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)