Skip to content

Commit 2adeb80

Browse files
author
abacus_fixer
committed
Fix undefined basis variable in interface workflow (#7571)
The "Create mock data & patch script" step referenced `basis` inside the Python heredoc without defining it: the matrix key `basis` was never exported to the step environment, so the step failed with "NameError: name 'basis' is not defined" before any mock data was generated. Pass matrix.basis through the BASIS environment variable and read it in the heredoc, matching the existing SCRIPT/PREFIX pattern.
1 parent 370e024 commit 2adeb80

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/interface.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ jobs:
5858
env:
5959
SCRIPT: ${{ matrix.script }}
6060
PREFIX: ${{ matrix.prefix }}
61+
BASIS: ${{ matrix.basis }}
6162
run: |
6263
python3 << 'PYEOF'
6364
import os, re, textwrap
6465
6566
script = os.environ["SCRIPT"]
6667
prefix = os.environ["PREFIX"]
68+
basis = os.environ["BASIS"]
6769
6870
# ── 1. Patch the example script ────────────────────────
6971
with open(script) as f:

0 commit comments

Comments
 (0)