Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 30 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,28 @@ on:

jobs:
build-and-test:
name: Test CLN=${{ matrix.cln-version }}, PY=${{ matrix.python-version }}, BCD=${{ matrix.bitcoind-version }}, EXP=${{ matrix.experimental }}, DEP=${{ matrix.deprecated }}
name: Test CLN=${{ matrix.config.cln-version }}, PY=${{ matrix.config.python-version }}, BCD=${{ matrix.bitcoind-version }}, EXP=${{ matrix.experimental }}, DEP=${{ matrix.deprecated }}
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.14"]
bitcoind-version: ["31.0"]
cln-version: ["26.06.1", "26.04", "25.12"]
experimental: [1]
deprecated: [0]
config:
- cln-version: "26.06.1"
python-version: "3.10"
- cln-version: "26.06.1"
python-version: "3.12"
- cln-version: "26.04"
python-version: "3.10"
- cln-version: "26.04"
python-version: "3.12"
- cln-version: "25.12"
python-version: "3.10"
- cln-version: "25.12"
python-version: "3.12"

steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -69,11 +80,11 @@ jobs:
echo "run_ci=false" >> "$GITHUB_OUTPUT"
fi

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.config.python-version }}
if: ${{ github.event_name == 'push' || steps.set_plugin_dirs.outputs.run_ci == 'true' }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.config.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
Expand Down Expand Up @@ -131,13 +142,13 @@ jobs:
/usr/local/bin/lightning*
/usr/local/bin/reckless
/usr/local/libexec/c-lightning
key: cache-cln-${{ matrix.cln-version }}-${{ steps.exact_versions.outputs.os_version }}
key: cache-cln-${{ matrix.config.cln-version }}-${{ steps.exact_versions.outputs.os_version }}

- name: Download Core Lightning ${{ matrix.cln-version }} & install binaries
- name: Download Core Lightning ${{ matrix.config.cln-version }} & install binaries
if: ${{ steps.cache-cln.outputs.cache-hit != 'true' && (github.event_name == 'push' || steps.set_plugin_dirs.outputs.run_ci == 'true') }}
id: cln-install
run: |
url=$(curl -s https://api.github.com/repos/ElementsProject/lightning/releases/tags/v${{ matrix.cln-version }} \
url=$(curl -s https://api.github.com/repos/ElementsProject/lightning/releases/tags/v${{ matrix.config.cln-version }} \
| jq '.assets[] | select(.name | contains("24.04")) | .browser_download_url' \
| tr -d '\"')
wget $url
Expand All @@ -151,7 +162,7 @@ jobs:
/usr/local/bin/lightning*
/usr/local/bin/reckless
/usr/local/libexec/c-lightning
key: cache-cln-${{ matrix.cln-version }}-${{ steps.exact_versions.outputs.os_version }}
key: cache-cln-${{ matrix.config.cln-version }}-${{ steps.exact_versions.outputs.os_version }}

- name: Run pytest tests
id: pytest_tests
Expand Down Expand Up @@ -182,9 +193,9 @@ jobs:

if [[ -z "$plugin_dirs" ]]; then
# Test all plugins if no specific plugins were changed
python3 .ci/test.py ${{ matrix.cln-version }} ${{ matrix.python-version }} $update_badges
python3 .ci/test.py ${{ matrix.config.cln-version }} ${{ matrix.config.python-version }} $update_badges
else
python3 .ci/test.py ${{ matrix.cln-version }} ${{ matrix.python-version }} $update_badges $(echo "$plugin_dirs")
python3 .ci/test.py ${{ matrix.config.cln-version }} ${{ matrix.config.python-version }} $update_badges $(echo "$plugin_dirs")
fi

gather:
Expand All @@ -197,7 +208,13 @@ jobs:
strategy:
fail-fast: false
matrix:
cln-version: ["26.06.1", "26.04", "25.12"]
include:
- cln-version: "26.06.1"
python-versions: "3.10 3.12"
- cln-version: "26.04"
python-versions: "3.10 3.12"
- cln-version: "25.12"
python-versions: "3.10 3.12"
steps:
- uses: actions/checkout@v6
with:
Expand All @@ -208,7 +225,6 @@ jobs:
python-version: "3.14"
- name: Complete
run: |
python_versions='3.10 3.14'
echo "Updating badges data for ${{ matrix.cln-version }} workflow..."
python3 .ci/update_badges.py ${{ matrix.cln-version }} $(echo "$python_versions")
python3 .ci/update_badges.py ${{ matrix.cln-version }} ${{ matrix.python-versions }}
echo "CI completed."
1 change: 1 addition & 0 deletions summary/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}