Skip to content

Commit 28650dd

Browse files
committed
Everything should works
1 parent 6f7857d commit 28650dd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,10 @@ jobs:
205205
uses: astral-sh/setup-uv@v7
206206
- name: Run python tests
207207
working-directory: api/python/slint
208-
run: |
209-
uv venv --python 3.12
210-
uv sync
211-
uv run maturin develop --release
208+
run:
212209
uv run pytest tests
210+
env:
211+
MATURIN_PEP517_ARGS: "--profile=dev"
213212
- name: tmate session if tests fail
214213
if: failure()
215214
uses: mxschmitt/action-tmate@v3

api/python/slint/tests/codegen/test_generator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import subprocess
1111
import sys
1212
from pathlib import Path
13+
from typing import Any
1314

1415
import pytest
1516
from slint.codegen.cli import _parse_library_paths
@@ -100,12 +101,12 @@ def _write_optional_fixture(target_dir: Path) -> Path:
100101
return slint_file
101102

102103

103-
def _load_module(module_path: Path):
104+
def _load_module(module_path: Path) -> Any:
104105
spec = importlib.util.spec_from_file_location("generated_module", module_path)
105106
assert spec and spec.loader
106107
module = importlib.util.module_from_spec(spec)
107108
sys.modules.pop("generated_module", None)
108-
spec.loader.exec_module(module) # type: ignore[assignment]
109+
spec.loader.exec_module(module)
109110
return module
110111

111112

0 commit comments

Comments
 (0)