mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
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:
parent
831e067f98
commit
f2dc010dbf
3 changed files with 5 additions and 24 deletions
|
|
@ -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")
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue