diff --git a/.github/workflows/python_test_reusable.yaml b/.github/workflows/python_test_reusable.yaml index dfdcf54ef5..8ded9a2618 100644 --- a/.github/workflows/python_test_reusable.yaml +++ b/.github/workflows/python_test_reusable.yaml @@ -50,10 +50,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v7 - uses: fjwillemsen/setup-nox2@v3.0.0 - - name: Run python tests - working-directory: api/python/slint - run: nox --default-venv-backend uv - - name: Install dev dependencies for ty + - name: Build and sync environment working-directory: api/python/slint run: uv sync - name: Run ty @@ -65,5 +62,8 @@ jobs: - name: Run ruff linter working-directory: api/python/briefcase run: uv tool run ruff check + - name: Run python tests + working-directory: api/python/slint + run: uv run pytest -s -v - name: Run python test driver run: cargo test -p test-driver-python diff --git a/api/python/slint/noxfile.py b/api/python/slint/noxfile.py deleted file mode 100644 index 078dc8cd11..0000000000 --- a/api/python/slint/noxfile.py +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright © SixtyFPS GmbH -# 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") diff --git a/api/python/slint/pyproject.toml b/api/python/slint/pyproject.toml index 06f82a9e4c..8ae6aa9eee 100644 --- a/api/python/slint/pyproject.toml +++ b/api/python/slint/pyproject.toml @@ -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