Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Pydantic version added to CI and some packages updated #6

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-latest]
pydantic-version: ["1", "2"]

steps:
- uses: actions/checkout@v4
Expand All @@ -25,10 +26,21 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: |
pip install --upgrade pip
- name: Install dependencies
run: |
python -m pip install poetry
poetry install
- name: Install Pydantic V1
if: matrix.pydantic-version == '1'
run: |
poetry run pip install "pydantic<2"
- name: Install Pydantic V2
if: matrix.pydantic-version == '2'
run: |
poetry run pip install "pydantic>=2,<3"
- name: Lint
if: matrix.os != 'windows-latest'
run: |
Expand All @@ -42,9 +54,7 @@ jobs:
run: |
./scripts/poetry_test.bat

check: # This job does nothing and is only used for the branch protection
if: github.event.pull_request.draft == false

check: # This job does nothing and is only used for the branch protection
needs:
- test

Expand Down
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ datamodel-code-generator = {extras = ["http"], version = "0.25.6"}
stringcase = "^1.2.0"
PySnooper = ">=0.4.1,<1.2.0"
jinja2 = ">=2.11.2,<4.0.0"
pydantic = "^2.0"
typed-ast = [
{version = ">=1.5.0", python = ">=3.9.8"},
{version = ">=1.4.2", python = "<3.9.8"},
Expand All @@ -44,11 +43,11 @@ typed-ast = [
#mkdocs-material = {version = "5.2.3", optional = true}

[tool.poetry.dev-dependencies]
pytest = "^7.4"
pytest = "^8.2"
pytest-cov = "*"
pytest-mock = "*"
mypy = "*"
freezegun = "^1.2.2"
mypy = "^1.10"
freezegun = "^1.5"
black = "24.4.2"
isort = "==5.13.2"

Expand Down
Loading