Skip to content

Commit 03e2a6d

Browse files
committed
fix python code
1 parent 182677a commit 03e2a6d

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,16 +154,18 @@ jobs:
154154
if (Test-Path (Join-Path $build 'bin')) { $env:PATH = "$($build)\bin;$env:PATH" }
155155
156156
# ctypes smoke test (surface missing dependent)
157-
python - << 'PY'
157+
$code = @"
158158
import ctypes, sys
159-
dll = r'''%s'''
159+
dll = r'$iface'
160+
print('Trying to load:', dll)
160161
try:
161162
ctypes.CDLL(dll)
162-
print("ctypes: loaded OK:", dll)
163+
print('Loaded OK')
163164
except OSError as e:
164-
print("ctypes: FAILED to load:", dll, "->", e)
165+
print('FAILED to load:', e)
165166
sys.exit(1)
166-
PY
167+
"@
168+
$code | python -
167169
168170
# Paths to JSON test data
169171
$test1Json = Join-Path $env:GITHUB_WORKSPACE 'tests/test_interface/test_01/svzerod_3Dcoupling.json'

0 commit comments

Comments
 (0)