Skip to content

Commit

Permalink
Merge branch 'dev-indicator-refactor' into dev-indi-no-chart
Browse files Browse the repository at this point in the history
* dev-indicator-refactor: (73 commits)
  • Loading branch information
kenorb committed Dec 8, 2021
2 parents 191c573 + 83676b6 commit cac1c7d
Show file tree
Hide file tree
Showing 150 changed files with 9,521 additions and 1,079 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/test-buffer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
name: Test Buffer

# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- 'Buffer/**'
- '.github/workflows/test-buffer.yml'
push:
paths:
- 'Buffer/**'
- '.github/workflows/test-buffer.yml'

jobs:

Compile:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Compile
uses: fx31337/mql-compile-action@master
with:
init-platform: true
path: 'Buffer/tests'
verbose: true
- name: Print compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
shell: powershell
- name: Upload artifacts (MQL4)
uses: actions/upload-artifact@v2
with:
name: files-ex4
path: '**/*.ex4'
- name: Upload artifacts (MQL5)
uses: actions/upload-artifact@v2
with:
name: files-ex5
path: '**/*.ex5'

Buffer-Tests-MQL4:
defaults:
run:
shell: bash
working-directory: Buffer/tests
needs: Compile
runs-on: ubuntu-latest
strategy:
matrix:
test:
- BufferCandle.test
- BufferTick.test
steps:
- uses: actions/download-artifact@v2
with:
name: files-ex4
- name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
Script: ${{ matrix.test }}
timeout-minutes: 10
67 changes: 67 additions & 0 deletions .github/workflows/test-indicator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
name: Test Indicator

# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- 'Indicator**'
- 'Indicator/**'
- '.github/workflows/test-indicator.yml'
push:
paths:
- 'Indicator**'
- 'Indicator/**'
- '.github/workflows/test-indicator.yml'

jobs:

Compile:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Compile
uses: fx31337/mql-compile-action@master
with:
init-platform: true
path: 'Indicator/tests'
verbose: true
- name: Print compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
shell: powershell
- name: Upload artifacts (MQL4)
uses: actions/upload-artifact@v2
with:
name: files-ex4
path: '**/*.ex4'
- name: Upload artifacts (MQL5)
uses: actions/upload-artifact@v2
with:
name: files-ex5
path: '**/*.ex5'

Indicator-Tests-MQL4:
defaults:
run:
shell: bash
working-directory: Indicator/tests
needs: Compile
runs-on: ubuntu-latest
strategy:
matrix:
test:
- IndicatorCandle.test
- IndicatorTf.test
- IndicatorTick.test
steps:
- uses: actions/download-artifact@v2
with:
name: files-ex4
- name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
BtDays: 4-8
BtMonths: 1
BtYears: 2020
TestExpert: ${{ matrix.test }}
timeout-minutes: 10
65 changes: 65 additions & 0 deletions .github/workflows/test-indicators-tick.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
name: Test Indicators (Tick)

# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- 'Indicator**'
- 'Indicators/Tick/**'
- '.github/workflows/test-indicators-tick.yml'
push:
paths:
- 'Indicator**'
- 'Indicators/Tick/**'
- '.github/workflows/test-indicators-tick.yml'

jobs:

Compile:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Compile
uses: fx31337/mql-compile-action@master
with:
init-platform: true
path: 'Indicators/Tick/tests'
verbose: true
- name: Print compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
shell: powershell
- name: Upload artifacts (MQL4)
uses: actions/upload-artifact@v2
with:
name: files-ex4
path: '**/*.ex4'
- name: Upload artifacts (MQL5)
uses: actions/upload-artifact@v2
with:
name: files-ex5
path: '**/*.ex5'

Indicators-Tests-MQL4:
defaults:
run:
shell: bash
working-directory: Indicators/tests
needs: Compile
runs-on: ubuntu-latest
strategy:
matrix:
test:
- Indi_Tick.test
steps:
- uses: actions/download-artifact@v2
with:
name: files-ex4
- name: Run ${{ matrix.test }}
uses: fx31337/mql-tester-action@master
with:
BtDays: 4-8
BtMonths: 1
BtYears: 2020
TestExpert: ${{ matrix.test }}
timeout-minutes: 10
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
strategy:
matrix:
test:
# - 3DTest
- CollectionTest
- ConfigTest
- ConvertTest
Expand Down
Loading

0 comments on commit cac1c7d

Please sign in to comment.