Skip to content

Commit 4044ec1

Browse files
committed
Fix pre commit
1 parent 1d28a76 commit 4044ec1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test | Test MetaTrader5 Initialization
1+
name: Test | MetaTrader5 Integration
22

33
on:
44
push:
@@ -22,10 +22,10 @@ jobs:
2222
run: |
2323
# Download MT5 setup
2424
Invoke-WebRequest -Uri "https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe" -OutFile mt5setup.exe
25-
25+
2626
# Install MT5 silently
2727
Start-Process -FilePath .\mt5setup.exe -ArgumentList "/auto" -Wait
28-
28+
2929
# Verify installation
3030
$mtPath = "C:\Program Files\MetaTrader 5\terminal64.exe"
3131
if (Test-Path $mtPath) {
@@ -45,13 +45,13 @@ jobs:
4545
# Kill any existing MT5 instances
4646
taskkill /F /IM terminal64.exe 2>$null
4747
Start-Sleep -Seconds 3
48-
48+
4949
# Start MT5 with the /desktop parameter as suggested in MQL5 forum
5050
$process = Start-Process -FilePath "C:\Program Files\MetaTrader 5\terminal64.exe" -ArgumentList "/portable", "/desktop" -PassThru
51-
$processId = $process.Id
52-
Write-Host "Started MetaTrader 5 terminal with PID $processId using /desktop parameter"
51+
$pid = $process.Id
52+
Write-Host "Started MetaTrader 5 terminal with PID $pid using /desktop parameter"
5353
Start-Sleep -Seconds 30
54-
# Start MT5 with the /desktop parameter as suggested in MQL5 forum
55-
$process = Start-Process -FilePath "C:\Program Files\MetaTrader 5\terminal64.exe" -ArgumentList "/portable", "/desktop" -PassThru
54+
55+
- name: Test MT5 Python integration
5656
run: |
57-
python -c "import sys, MetaTrader5 as mt5; print(f'MT5 version: {mt5.__version__}'); print('Initializing...'); result = mt5.initialize(path=r'C:\\Program Files\\MetaTrader 5\\terminal64.exe', timeout=60000); print(f'Result: {result}, Error: {mt5.last_error()}'); sys.exit(0)"
57+
python -c "import sys, MetaTrader5 as mt5; print(f'MT5 version: {mt5.__version__}'); print('Initializing...'); result = mt5.initialize(path=r'C:\\Program Files\\MetaTrader 5\\terminal64.exe', timeout=60000); print(f'Result: {result}, Error: {mt5.last_error()}'); sys.exit(0)"

0 commit comments

Comments
 (0)