Skip to content

Commit fbcaad5

Browse files
committed
CI: install cln specific pyln packages in uv frameworks
1 parent a6a4022 commit fbcaad5

File tree

3 files changed

+57
-44
lines changed

3 files changed

+57
-44
lines changed

.ci/test.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,20 @@ def prepare_env(p: Plugin, workflow: str) -> Tuple[dict, tempfile.TemporaryDirec
3131
env = os.environ.copy()
3232
directory = p.path / ".venv"
3333

34-
if p.framework != "uv":
34+
if p.framework == "uv":
35+
if workflow == "nightly":
36+
cln_path = os.environ["CLN_PATH"]
37+
try:
38+
subprocess.check_call(["uv", "add", "--editable", cln_path + "/contrib/pyln-testing", cln_path + "/contrib/pyln-client", cln_path + "/contrib/pyln-proto"], cwd=p.path.resolve())
39+
except: # noqa: E722
40+
subprocess.check_call(["uv", "add", "--dev", "--editable", cln_path + "/contrib/pyln-testing", cln_path + "/contrib/pyln-client", cln_path + "/contrib/pyln-proto"], cwd=p.path.resolve())
41+
else:
42+
pyln_version = re.sub(r'\.0(\d+)', r'.\1', workflow)
43+
try:
44+
subprocess.check_call(["uv", "add", f"pyln-testing=={pyln_version}", f"pyln-client=={pyln_version}", f"pyln-proto=={pyln_version}"], cwd=p.path.resolve())
45+
except: # noqa: E722
46+
subprocess.check_call(["uv", "add", "--dev", f"pyln-testing=={pyln_version}", f"pyln-client=={pyln_version}", f"pyln-proto=={pyln_version}"], cwd=p.path.resolve())
47+
else:
3548
# Create a temporary directory for virtualenv
3649
vdir = tempfile.TemporaryDirectory()
3750
directory = Path(vdir.name)

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
matrix:
2121
python-version: ["3.9", "3.13"]
2222
bitcoind-version: ["28.1"]
23-
cln-version: ["25.09", "25.05", "25.02"]
23+
cln-version: ["25.09.1", "25.05", "25.02.2"]
2424
experimental: [1]
2525
deprecated: [0]
2626

@@ -189,7 +189,7 @@ jobs:
189189
strategy:
190190
fail-fast: false
191191
matrix:
192-
cln-version: ["25.09", "25.05", "25.02"]
192+
cln-version: ["25.09.1", "25.05", "25.02.2"]
193193
steps:
194194
- uses: actions/checkout@v4
195195
with:

0 commit comments

Comments
 (0)