Skip to content

Commit c7d7a00

Browse files
cdeckerclaude
andcommitted
CI: fix env context reference in job-level env sections.
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 <[email protected]>
1 parent 82b7b39 commit c7d7a00

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ jobs:
318318
LIGHTNINGD_POSTGRES_NO_VACUUM: 1
319319
VALGRIND: ${{ matrix.VALGRIND }}
320320
PREV_LIGHTNINGD: /tmp/old-cln/usr/bin/lightningd
321+
PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }}
321322
run: |
322323
env
323324
cat config.vars
@@ -336,7 +337,7 @@ jobs:
336337
timeout-minutes: 120
337338
env:
338339
RUST_PROFILE: release # Has to match the one in the compile step
339-
PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }}
340+
PYTEST_OPTS: --reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10
340341
needs:
341342
- compile
342343
strategy:
@@ -452,7 +453,7 @@ jobs:
452453
env:
453454
RUST_PROFILE: release # Has to match the one in the compile step
454455
CFG: compile-gcc
455-
PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }} --test-group-random-seed=42
456+
PYTEST_OPTS: --reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10 --test-group-random-seed=42
456457
needs:
457458
- compile
458459
strategy:
@@ -530,7 +531,7 @@ jobs:
530531
RUST_PROFILE: release
531532
SLOW_MACHINE: 1
532533
TEST_DEBUG: 1
533-
PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }} --test-group-random-seed=42
534+
PYTEST_OPTS: --reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10 --test-group-random-seed=42
534535
needs:
535536
- compile
536537
strategy:
@@ -609,7 +610,7 @@ jobs:
609610
env:
610611
VALGRIND: 0
611612
GENERATE_EXAMPLES: 1
612-
PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }}
613+
PYTEST_OPTS: --reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10
613614
TEST_NETWORK: regtest
614615
needs:
615616
- compile
@@ -655,7 +656,7 @@ jobs:
655656
timeout-minutes: 120
656657
env:
657658
RUST_PROFILE: release # Has to match the one in the compile step
658-
PYTEST_OPTS: ${{ env.PYTEST_OPTS_BASE }}
659+
PYTEST_OPTS: --reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10
659660
needs:
660661
- compile
661662
strategy:

0 commit comments

Comments
 (0)