Skip to content

Commit 4150290

Browse files
authored
support Python 3.14 (#10)
1 parent 3da6da5 commit 4150290

5 files changed

Lines changed: 244 additions & 213 deletions

File tree

.github/workflows/test.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ on:
44
push:
55
branches:
66
- main
7-
-
7+
8+
89
jobs:
910
validate:
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v4
1314
- uses: actions/setup-python@v5
1415
with:
15-
python-version: "3.12"
16+
python-version: "3.13"
1617
- name: Install Pre-Commit
1718
run: python -m pip install pre-commit && pre-commit install
1819
- name: Load cached Pre-Commit Dependencies
@@ -30,14 +31,14 @@ jobs:
3031
fail-fast: true
3132
matrix:
3233
python-version:
33-
- "3.9"
3434
- "3.10"
3535
- "3.11"
3636
- "3.12"
3737
- "3.13"
38+
- "3.14"
3839
pytest-version:
39-
- "7"
4040
- "8"
41+
- "9"
4142
runs-on: ubuntu-latest
4243
steps:
4344
- name: Check out repository

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ default_language_version:
22
python: "3.12"
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.8.4
5+
rev: v0.14.5
66
hooks:
77
- id: ruff
88
args: ["--fix"]

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [
66
{ name = "Janek Nouvertné", email = "provinzkraut@posteo.de" },
77
]
88
readme = "README.md"
9-
requires-python = ">=3.9"
9+
requires-python = ">=3.10"
1010
classifiers = [
1111
"Framework :: Pytest",
1212
"Intended Audience :: Developers",
@@ -23,7 +23,7 @@ classifiers = [
2323
"Programming Language :: Python :: 3.13",
2424
]
2525
dependencies = [
26-
"pytest>=7",
26+
"pytest>=8",
2727
]
2828

2929

pytest_cdist/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def check_reports(reports: list[dict[str, Any]]) -> list[str]:
2121
errors.append("Collected different items between runs")
2222
else:
2323
all_selected = [item for report in reports for item in report["selected"]]
24-
if all_selected != reports[0]["collected"]:
24+
if len(all_selected) != len(reports[0]["collected"]):
2525
errors.append("Items missing during collection")
2626

2727
return errors

0 commit comments

Comments
 (0)