File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -19,22 +19,28 @@ jobs:
19
19
20
20
- name : Download MetaTrader5 Installer
21
21
run : |
22
- Invoke-WebRequest `
23
- -Uri "https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe" `
22
+ Invoke-WebRequest `
23
+ -Uri "https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe" `
24
24
-OutFile "mt5setup.exe"
25
25
shell : pwsh
26
26
27
27
- name : Install MetaTrader5
28
28
run : |
29
29
$process = Start-Process -FilePath ".\mt5setup.exe" -ArgumentList "/auto", "/portable" -PassThru
30
- $process.WaitForExit(300000)
30
+ $process.WaitForExit(300000) # Wait for up to 5 minutes
31
31
if (-not $process.HasExited) {
32
32
Write-Host "MT5 installer stuck, killing..."
33
33
Stop-Process -Id $process.Id -Force
34
34
exit 1
35
35
}
36
36
shell : pwsh
37
37
38
+ - name : Copy MT5 configuration
39
+ run : |
40
+ # Ensure the config folder exists and copy the saved config files
41
+ Copy-Item -Path ".github/mt5-config/*" -Destination ".\MetaTrader 5\config" -Recurse -Force
42
+ shell : pwsh
43
+
38
44
- name : Kill any existing MT5 processes
39
45
run : |
40
46
Get-Process terminal64 -ErrorAction SilentlyContinue | Stop-Process -Force
65
71
- name : Install MetaTrader5 Python package
66
72
run : pip install MetaTrader5
67
73
68
-
69
74
- name : Run MT5 test script
70
75
run : python tests/integration/test_mt5_connection.py
You can’t perform that action at this time.
0 commit comments