diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8190192..9aa14a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -154,5 +154,6 @@ jobs: export VALGRIND=0 export PYTEST_TIMEOUT=600 + cd tests uv add --dev pyln-testing==${{ inputs.pyln-version }} pyln-client==${{ inputs.pyln-version }} pyln-proto==${{ inputs.pyln-version }} - uv run -v pytest -n=10 tests/test_*.py + uv run -v pytest -n=10 diff --git a/pyproject.toml b/tests/pyproject.toml similarity index 100% rename from pyproject.toml rename to tests/pyproject.toml diff --git a/tests/util.py b/tests/util.py index 1f6fbf8..a3f69aa 100644 --- a/tests/util.py +++ b/tests/util.py @@ -7,8 +7,9 @@ from pathlib import Path import pytest RUST_PROFILE = os.environ.get("RUST_PROFILE", "debug") -COMPILED_PATH = Path.cwd() / "target" / RUST_PROFILE / "cln-nip47" -DOWNLOAD_PATH = Path.cwd() / "tests" / "cln-nip47" +plugin_dir = Path(__file__).parent.parent.resolve() +COMPILED_PATH = plugin_dir / "target" / RUST_PROFILE / "cln-nip47" +DOWNLOAD_PATH = plugin_dir / "tests" / "cln-nip47" @pytest.fixture diff --git a/uv.lock b/tests/uv.lock similarity index 100% rename from uv.lock rename to tests/uv.lock