Skip to content

Commit

Permalink
Run tests in multiple pydantic versions
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Jul 15, 2023
1 parent 66c5bbe commit c2286bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
python-version:
- "3.10"
- "3.11"

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -38,6 +37,10 @@ jobs:
- name: Test with pytest
run: |
SKIP_DIFF_TESTS=1 pytest --cov=flux_local --cov-report=term-missing
- name: Test with pytest (pydantic v1)
run: |
pip3 install pydantic==1.10.11
SKIP_DIFF_TESTS=1 pytest --cov=flux_local --cov-report=term-missing
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ nest_asyncio==1.5.6
pdoc==14.0.0
pip==23.1.2
pre-commit==3.3.3
pydantic==1.10.11
pydantic==2.0.3
pytest==7.4.0
pytest-asyncio==0.21.1
pytest-cov==4.1.0
Expand Down

0 comments on commit c2286bd

Please sign in to comment.