Skip to content

Commit 85ba9b4

Browse files
committed
Merge remote-tracking branch 'necaris/update-test-matrix' into update-test-matrix
2 parents 9739b82 + fa79fdb commit 85ba9b4

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
python-version: ${{ matrix.python-version }}
2727
- uses: abatilo/actions-poetry@v2
2828
- run: poetry install
29-
- run: poetry run nox -r --non-interactive --python=python
29+
- run: poetry run nox --non-interactive

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)