File tree Expand file tree Collapse file tree 5 files changed +27
-32
lines changed
Expand file tree Collapse file tree 5 files changed +27
-32
lines changed Original file line number Diff line number Diff line change 3737
3838 - name : Install dependencies
3939 run : |
40- poetry install -E all
40+ poetry install -E all --sync
4141
4242 - name : Lint
4343 run : |
Original file line number Diff line number Diff line change 5959
6060 - name : Install dependencies
6161 run : |
62- poetry install -E all
62+ poetry install -E all --sync
6363
6464 - name : Install pydantic v2
6565 if : ${{ matrix.pydantic_v2 == 'true' }}
8989 poetry run pip install -U odmantic "pydantic<2.7"
9090 poetry run pytest tests -m "odmantic" --cov-append --cov-report=xml --cassandra-dsn=${CQL_TEST_HOST}
9191
92- - name : Unit tests gino
93- if : ${{ matrix.pydantic_v2 == 'false' && matrix.python-version != '3.12' }}
94- run : |
95- poetry run pip install -U "gino[starlette]" "fastapi==0.84.0"
96- poetry run pytest -m gino --cov-append --cov-report=xml
97-
9892 - name : Upload coverage to Codecov
9993 uses : codecov/codecov-action@v4
10094 with :
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ requests = "^2.32.2"
6262uvicorn = " ^0.30.1"
6363Jinja2 = " ^3.1.4"
6464mypy = " ^1.10.1"
65- ruff = " ^0.4.10 "
65+ ruff = " ^0.5.0 "
6666
6767[tool .poetry .extras ]
6868sqlmodel = [" sqlmodel" , " sqlakeyset" ]
Original file line number Diff line number Diff line change @@ -216,14 +216,14 @@ def test_additional_fields():
216216 if IS_PYDANTIC_V2 :
217217 from pydantic_core import PydanticUndefined
218218
219- assert CustomPage .model_fields ["a" ].annotation == int
219+ assert CustomPage .model_fields ["a" ].annotation is int
220220 assert CustomPage .model_fields ["a" ].default is PydanticUndefined
221221
222- assert CustomPage .model_fields ["b" ].annotation == str
222+ assert CustomPage .model_fields ["b" ].annotation is str
223223 assert CustomPage .model_fields ["b" ].default == "my-default"
224224 else :
225- assert CustomPage .__fields__ ["a" ].type_ == int
225+ assert CustomPage .__fields__ ["a" ].type_ is int
226226 assert CustomPage .__fields__ ["a" ].default is None
227227
228- assert CustomPage .__fields__ ["b" ].type_ == str
228+ assert CustomPage .__fields__ ["b" ].type_ is str
229229 assert CustomPage .__fields__ ["b" ].default == "my-default"
You can’t perform that action at this time.
0 commit comments