From c7d7a007b8abdb875dea7a395f7d0c5e84151c2e Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 9 Dec 2025 18:06:44 +0100 Subject: [PATCH] CI: fix env context reference in job-level env sections. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub Actions doesn't allow referencing workflow-level env variables from job-level env sections. Fixed by: - Replacing ${{ env.PYTEST_OPTS_BASE }} with full values in job-level env - Keeping ${{ env.PYTEST_OPTS_BASE }} in step-level env (which is valid) This resolves the "Unrecognized named-value: 'env'" errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .github/workflows/ci.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3bd67893a..7ccc73612 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -318,6 +318,7 @@ jobs: LIGHTNINGD_POSTGRES_NO_VACUUM: 1 VALGRIND: ${{ matrix.VALGRIND }} PREV_LIGHTNINGD: /tmp/old-cln/usr/bin/lightningd + PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }} run: | env cat config.vars @@ -336,7 +337,7 @@ jobs: timeout-minutes: 120 env: RUST_PROFILE: release # Has to match the one in the compile step - PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }} + PYTEST_OPTS: --reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10 needs: - compile strategy: @@ -452,7 +453,7 @@ jobs: env: RUST_PROFILE: release # Has to match the one in the compile step CFG: compile-gcc - PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }} --test-group-random-seed=42 + PYTEST_OPTS: --reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10 --test-group-random-seed=42 needs: - compile strategy: @@ -530,7 +531,7 @@ jobs: RUST_PROFILE: release SLOW_MACHINE: 1 TEST_DEBUG: 1 - PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }} --test-group-random-seed=42 + PYTEST_OPTS: --reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10 --test-group-random-seed=42 needs: - compile strategy: @@ -609,7 +610,7 @@ jobs: env: VALGRIND: 0 GENERATE_EXAMPLES: 1 - PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }} + PYTEST_OPTS: --reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10 TEST_NETWORK: regtest needs: - compile @@ -655,7 +656,7 @@ jobs: timeout-minutes: 120 env: RUST_PROFILE: release # Has to match the one in the compile step - PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }} + PYTEST_OPTS: --reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10 needs: - compile strategy: