Skip to content

Commit ad4b936

Browse files
author
Rami Chowdhury
committed
Dont do too much in nox
1 parent 5c02d9e commit ad4b936

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

noxfile.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1+
import sys
12
from nox import parametrize, session
23

34

45
@session
56
@parametrize(
6-
"python,pydantic",
7-
[
8-
(python, pydantic)
9-
for python in ("3.10", "3.11", "3.7", "3.8", "3.9")
10-
for pydantic in ("1.9", "1.10", "1.7", "1.8")
11-
if (python, pydantic) not in (("3.10", "1.7"), ("3.10", "1.8"))
12-
],
7+
"pydantic",
8+
("1.9", "1.10", "1.7", "1.8"),
139
)
14-
def tests(session, python, pydantic):
10+
def tests(session, pydantic):
11+
if sys.version_info > (3, 10) and pydantic in ("1.7", "1.8"):
12+
return session.skip()
1513
session.install(f"pydantic=={pydantic}")
1614
session.install("pytest", "pytest-cov", ".")
1715
session.run(

0 commit comments

Comments
 (0)