|
88 | 88 | - name: Check source
|
89 | 89 | env:
|
90 | 90 | VALGRIND: 0
|
91 |
| - GENERATE_EXAMPLES: 1 |
92 | 91 | PYTEST_OPTS: --timeout=1200
|
93 | 92 | run: make check-source BASE_REF="origin/${{ github.base_ref }}"
|
94 | 93 | - name: Check Generated Files have been updated
|
@@ -480,6 +479,48 @@ jobs:
|
480 | 479 | run: |
|
481 | 480 | poetry run pytest tests/ -vvv -n 2 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
|
482 | 481 |
|
| 482 | + update-docs-examples: |
| 483 | + name: Update examples in doc schemas |
| 484 | + runs-on: ubuntu-22.04 |
| 485 | + timeout-minutes: 30 |
| 486 | + strategy: |
| 487 | + fail-fast: true |
| 488 | + env: |
| 489 | + VALGRIND: 0 |
| 490 | + GENERATE_EXAMPLES: 1 |
| 491 | + PYTEST_OPTS: --timeout=1200 |
| 492 | + TEST_NETWORK: regtest |
| 493 | + needs: |
| 494 | + - compile |
| 495 | + steps: |
| 496 | + - name: Checkout |
| 497 | + uses: actions/checkout@v4 |
| 498 | + - name: Set up Python 3.10 |
| 499 | + uses: actions/setup-python@v5 |
| 500 | + with: |
| 501 | + python-version: '3.10' |
| 502 | + - name: Install dependencies |
| 503 | + run: | |
| 504 | + bash -x .github/scripts/setup.sh |
| 505 | + pip install -U pip wheel poetry |
| 506 | + poetry self add poetry-plugin-export |
| 507 | + poetry export -o /tmp/requirements.txt --without-hashes --with dev |
| 508 | + pip install -r /tmp/requirements.txt |
| 509 | + - name: Install bitcoind |
| 510 | + env: |
| 511 | + TEST_NETWORK: regtest |
| 512 | + run: .github/scripts/install-bitcoind.sh |
| 513 | + - name: Download build |
| 514 | + uses: actions/download-artifact@v4 |
| 515 | + with: |
| 516 | + name: cln-compile-gcc.tar.bz2 |
| 517 | + - name: Unpack pre-built CLN |
| 518 | + run: | |
| 519 | + tar -xaf cln-compile-gcc.tar.bz2 |
| 520 | + - name: Test |
| 521 | + run: | |
| 522 | + make -j $(nproc) check-doc-examples |
| 523 | +
|
483 | 524 | min-btc-support:
|
484 | 525 | name: Test minimum supported BTC v${{ matrix.MIN_BTC_VERSION }} with ${{ matrix.NAME }}
|
485 | 526 | runs-on: ubuntu-22.04
|
@@ -582,6 +623,7 @@ jobs:
|
582 | 623 | - check-units
|
583 | 624 | - integration-valgrind
|
584 | 625 | - integration-sanitizers
|
| 626 | + - update-docs-examples |
585 | 627 | - min-btc-support
|
586 | 628 | - check-flake
|
587 | 629 | steps:
|
|
0 commit comments