Skip to content

Commit

Permalink
GHA: Fixes Test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Sep 1, 2024
1 parent d3efd92 commit 7aaa1b0
Showing 1 changed file with 29 additions and 10 deletions.
39 changes: 29 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
path: tests
skip_cleanup: true

Experts-MQL4:
test:
defaults:
run:
shell: bash
Expand All @@ -47,21 +47,29 @@ jobs:
- StrategyTest-RSI
- SummaryReportTest
- TradeTest
version: [5]
max-parallel: 4
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: files-ex4
name: files-ex${{ matrix.version }}
- name: List compiled files
run: find . -name '*.ex?' -type f -print
- name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
BtDays: 4-12
BtMonths: 1
BtYears: 2021
GitHubApiToken: ${{ github.token }}
TestExpert: ${{ matrix.test }}
RunOnError: show_logs 200
if: always()
Login: ${{ secrets.MT5_LOGIN }}
Password: ${{ secrets.MT5_PASSWORD }}
Server: MetaQuotes-Demo
TestDeposit: 2000
TestExpert: EA31337-${{ matrix.mode }}-${{ github.sha }}
TestFromDate: ${{ matrix.year }}.01.01
TestPeriod: M1
TestSymbol: EURUSD
TestToDate: ${{ matrix.year }}.01.14
# yamllint disable-line rule:line-length
UrlExpert: file://${{ github.workspace }}/${{ matrix.test }}.ex${{ matrix.version }}
Version: 5
timeout-minutes: 10

Scripts-MQL4:
Expand Down Expand Up @@ -92,3 +100,14 @@ jobs:
Script: ${{ matrix.test }}
if: always()
timeout-minutes: 10

cleanup:
if: inputs.skip_cleanup != true
name: Clean-up
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: geekyeggo/delete-artifact@v5
with:
name: mt?
timeout-minutes: 5

0 comments on commit 7aaa1b0

Please sign in to comment.