Skip to content

Commit c563124

Browse files
committed
inline
1 parent e233b70 commit c563124

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

.github/workflows/test-metatrader5-integration.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,4 @@ jobs:
6060
- name: Run Python inline script
6161
shell: pwsh
6262
run: |
63-
python - <<EOF
64-
import MetaTrader5 as mt5
65-
import time
66-
67-
print('Testing MT5 initialization...')
68-
time.sleep(5) # Extra sleep to ensure MT5 ready
69-
70-
if not mt5.initialize():
71-
print('Failed to initialize:', mt5.last_error())
72-
exit(1)
73-
else:
74-
print('MT5 initialized successfully')
75-
mt5.shutdown()
76-
EOF
77-
63+
python -c "import MetaTrader5 as mt5; import time; print('Testing MT5 initialization...'); time.sleep(5); assert mt5.initialize(), f'Failed to initialize: {mt5.last_error()}'; print('MT5 initialized successfully'); mt5.shutdown()"

0 commit comments

Comments
 (0)