|
8 | 8 | nox.options.error_on_external_run = True |
9 | 9 | nox.options.default_venv_backend = "uv" |
10 | 10 |
|
11 | | -PYTHON_VERSIONS = ["3.13", "3.12", "3.11", "3.10", "3.9"] |
| 11 | +PYTHON_VERSIONS = ["3.14", "3.13", "3.12", "3.11", "3.10", "3.9"] |
12 | 12 |
|
13 | 13 | GQL_CORE_VERSIONS = [ |
14 | | - "3.2.3", |
| 14 | + "3.2.6", |
15 | 15 | "3.3.0a9", |
16 | 16 | ] |
17 | 17 |
|
@@ -129,12 +129,35 @@ def tests_integrations(session: Session, integration: str, gql_core: str) -> Non |
129 | 129 | session.run("pytest", *COMMON_PYTEST_OPTIONS, "-m", integration) |
130 | 130 |
|
131 | 131 |
|
| 132 | +@session( |
| 133 | + python=["3.9", "3.10", "3.11", "3.12", "3.13"], |
| 134 | + name="Pydantic V1 tests", |
| 135 | + tags=["tests", "pydantic"], |
| 136 | +) |
| 137 | +@gql_core_parametrize |
| 138 | +def test_pydantic(session: Session, gql_core: str) -> None: |
| 139 | + session.run_always("poetry", "install", "--without=integrations", external=True) |
| 140 | + |
| 141 | + session._session.install("pydantic~=1.10") # type: ignore |
| 142 | + _install_gql_core(session, gql_core) |
| 143 | + session.run( |
| 144 | + "pytest", |
| 145 | + "--cov=.", |
| 146 | + "--cov-append", |
| 147 | + "--cov-report=xml", |
| 148 | + "-m", |
| 149 | + "pydantic", |
| 150 | + "--ignore=tests/cli", |
| 151 | + "--ignore=tests/benchmarks", |
| 152 | + ) |
| 153 | + |
| 154 | + |
132 | 155 | @session(python=PYTHON_VERSIONS, name="Pydantic tests", tags=["tests", "pydantic"]) |
133 | | -@with_gql_core_parametrize("pydantic", ["1.10", "2.9.0", "2.10.0", "2.11.0"]) |
134 | | -def test_pydantic(session: Session, pydantic: str, gql_core: str) -> None: |
| 156 | +@gql_core_parametrize |
| 157 | +def test_pydantic_v2(session: Session, gql_core: str) -> None: |
135 | 158 | session.run_always("poetry", "install", "--without=integrations", external=True) |
136 | 159 |
|
137 | | - session._session.install(f"pydantic~={pydantic}") # type: ignore |
| 160 | + session._session.install("pydantic~=2.12") # type: ignore |
138 | 161 | _install_gql_core(session, gql_core) |
139 | 162 | session.run( |
140 | 163 | "pytest", |
@@ -166,7 +189,8 @@ def tests_typecheckers(session: Session) -> None: |
166 | 189 | ) |
167 | 190 |
|
168 | 191 |
|
169 | | -@session(python=PYTHON_VERSIONS, name="CLI tests", tags=["tests"]) |
| 192 | +# skipping python 3.9 because of some changes in click 8.2.0 |
| 193 | +@session(python=PYTHON_VERSIONS[:-1], name="CLI tests", tags=["tests"]) |
170 | 194 | def tests_cli(session: Session) -> None: |
171 | 195 | session.run_always("poetry", "install", "--without=integrations", external=True) |
172 | 196 |
|
|
0 commit comments