Python: Speed up testing

Separate steps and remove nox, so that

1. We first set up the env and build slint **once**
2. We run the fast lint/ty/etc. checks
3. We run the python tests directly
This commit is contained in:
Simon Hausmann 2025-11-20 17:00:52 +01:00 committed by Simon Hausmann
parent 831e067f98
commit f2dc010dbf
3 changed files with 5 additions and 24 deletions

View file

@ -1,11 +0,0 @@
# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
import nox
@nox.session(python="3.12")
def python(session: nox.Session):
session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
session.install(".[dev]")
session.run("pytest", "-s", "-v")

View file

@ -40,15 +40,7 @@ Tracker = "https://github.com/slint-ui/slint/issues"
dev = ["pytest", "numpy>=2.3.2", "pillow>=11.3.0", "aiohttp>=3.12.15"]
[dependency-groups]
dev = [
"nox>=2024.10.9",
"pdoc>=15.0.1",
"pytest>=8.3.4",
"ruff>=0.9.6",
"pillow>=11.3.0",
"numpy>=2.3.2",
"aiohttp>=3.12.15",
]
dev = ["pdoc>=15.0.1", "pytest>=8.3.4", "ruff>=0.9.6", "pillow>=11.3.0", "numpy>=2.3.2", "aiohttp>=3.12.15"]
[tool.uv]
# Rebuild package when any rust files change