Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev-v2012' into dev-indi-no-chart
Browse files Browse the repository at this point in the history
* origin/dev-v2012: (97 commits)
  Added TaskManager::Add(string _entry) method which creates TaskEntry from JSON string.
  EA: Adds test for task init
  EA: Reenables initial task logic
  Trade: Integrates TaskManager logic
  CompileTest: Adds missing Task includes
  EA/Strategy: Integrates taskable actions
  Task: Adds struct methods for arguments
  EA: Integrates TaskManager logic with Task's conditions
  Strategy: Renames tsm to tasks
  Task: Fixes TaskCondition test
  GHA: Includes testing on .mq? changes
  Task: Fixes TaskAction test
  Strategy: Integrates TaskManager logic with Task's conditions
  Fixed DictObjectIterator's value pointer's cast. Fixed TaskEntry::Get()'s switch. Made tasks dictionary to store references to Task type.
  Task/TaskObject: Adds support for objects
  Task: Adds TaskManager
  Task: Improves processing methods
  Task: Adds TaskObject
  Task.test: Adds TestTask01()
  Task/Task: Adds missing virtual methods
  ...
  • Loading branch information
kenorb committed Jan 28, 2022
2 parents 191c573 + d1f9af0 commit fd383ca
Show file tree
Hide file tree
Showing 183 changed files with 10,954 additions and 2,565 deletions.
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
67 changes: 67 additions & 0 deletions .github/workflows/test-task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
name: Test Task

# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- 'Task/**'
- '.github/workflows/test-task.yml'
push:
paths:
- 'Task/**'
- '.github/workflows/test-task.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: 'Task/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'

Task-Tests-MQL4:
defaults:
run:
shell: bash
working-directory: Task/tests
needs: Compile
runs-on: ubuntu-latest
strategy:
matrix:
test:
- Task.test
- TaskAction.test
- TaskCondition.test
- TaskGetter.test
- TaskManager.test
- TaskObject.test
- TaskSetter.test
- Taskable.car.test
- Taskable.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 }}
58 changes: 58 additions & 0 deletions .github/workflows/test-tick.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
name: Test Tick

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

jobs:

Compile:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Compile
uses: fx31337/mql-compile-action@master
with:
path: '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'

Tick-Tests-MQL4:
defaults:
run:
shell: bash
working-directory: Tick/tests
needs: Compile
runs-on: ubuntu-latest
strategy:
matrix:
test:
- TickManager.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 }}
2 changes: 2 additions & 0 deletions .github/workflows/test-trade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
pull_request:
paths:
- 'Trade/**.h'
- 'Trade/**.mq?'
- '.github/workflows/test-trade.yml'
push:
paths:
- 'Trade/**.h'
- 'Trade/**.mq?'
- '.github/workflows/test-trade.yml'

jobs:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Compile
uses: fx31337/mql-compile-action@master
with:
init-platform: true
mt-version: 4.0.0.1349
verbose: true
- name: Print compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
Expand All @@ -54,12 +54,10 @@ jobs:
matrix:
test:
- AccountTest
- ActionTest
- BufferStructTest
- BufferTest
- ChartTest
- CompileIndicatorsTest
- ConditionTest
- DatabaseTest
- DrawIndicatorTest
- EATest
Expand All @@ -76,7 +74,6 @@ jobs:
- StrategyTest-RSI
- SymbolInfoTest
- SummaryReportTest
- TaskTest
- TickerTest
- TradeTest
steps:
Expand All @@ -89,6 +86,7 @@ jobs:
BtDays: 1-8
BtMonths: 1
BtYears: 2020
MtVersion: 4.0.0.1349
TestExpert: ${{ matrix.test }}
timeout-minutes: 10

Expand All @@ -102,6 +100,7 @@ jobs:
strategy:
matrix:
test:
# - 3DTest
- CollectionTest
- ConfigTest
- ConvertTest
Expand Down
Loading

0 comments on commit fd383ca

Please sign in to comment.