-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests failures when LND node is not used
- Loading branch information
1 parent
5f67f8f
commit 38f7fc3
Showing
6 changed files
with
40 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,26 +18,27 @@ jobs: | |
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 2 | ||
max-parallel: 4 | ||
matrix: | ||
python-tag: ['3.11.6-slim-bookworm', '3.12-slim-bookworm'] | ||
lnd-version: ["v0.17.0-beta"] # , "v0.17.0-beta.rc1"] | ||
cln-version: ["v23.08.1"] | ||
ln-vendor: ["LND", "CLN"] | ||
lnd-version: ['v0.17.0-beta'] # , 'v0.17.0-beta.rc1'] | ||
cln-version: ['v23.08.1'] | ||
ln-vendor: ['LND', 'CLN'] | ||
|
||
steps: | ||
- name: 'Checkout' | ||
uses: actions/checkout@v4 | ||
|
||
- name: Update Python version in Dockerfile | ||
- name: Patch Dockerfile and .env-sample | ||
run: | | ||
sed -i "1s/FROM python:.*/FROM python:${{ matrix.python-tag }}/" Dockerfile | ||
sed -i '/RUN pip install --no-cache-dir -r requirements.txt/a COPY requirements_dev.txt .\nRUN pip install --no-cache-dir -r requirements_dev.txt' Dockerfile | ||
sed -i "s/^LNVENDOR=.*/LNVENDOR='${{ matrix.ln-vendor }}'/" .env-sample | ||
- uses: satackey/[email protected] | ||
continue-on-error: true | ||
with: | ||
key: coordinator-docker-cache-${{ hashFiles('./Dockerfile') }} | ||
key: coordinator-docker-cache-${{ hashFiles('Dockerfile', 'requirements.txt', 'requirements_dev.txt') }} | ||
restore-keys: | | ||
coordinator-docker-cache- | ||
|
@@ -46,13 +47,11 @@ jobs: | |
with: | ||
compose-file: "./docker-tests.yml" | ||
down-flags: "--volumes" | ||
# Ideally we run only coordinator-${{ matrix.ln-vendor }} , at the moment some tests fail if LND is not around. | ||
services: | | ||
bitcoind | ||
postgres | ||
redis | ||
coordinator-CLN | ||
coordinator-LND | ||
coordinator-${{ matrix.ln-vendor }} | ||
robot-LND | ||
coordinator | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters