Skip to content

Commit 1be0a68

Browse files
Initial commit
0 parents  commit 1be0a68

24 files changed

+1629
-0
lines changed

.github/issue_template.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!--- This template provides sections for bugs and features. Please delete any irrelevant sections before submitting -->
2+
3+
#### Expected Behavior
4+
<!--- Required. Describe the behavior you expect to see for your case. -->
5+
6+
#### Actual Behavior
7+
<!--- Required. Describe the actual behavior for your case. -->
8+
9+
#### Potential Solution
10+
<!--- Optional. Describe any potential solutions and/or thoughts as to what may be causing the difference between expected and actual behavior. -->
11+
12+
#### Reproducing the Problem
13+
<!--- Required for Bugs. Describe how to reproduce the problem. This can be via a failing unit test or a simplified algorithm that reliably demonstrates this issue. -->
14+
15+
#### System Information
16+
<!--- Required for Bugs. Include any system specific information, such as OS. -->
17+
18+
#### Checklist
19+
<!--- Confirm that you've provided all the required information. -->
20+
<!--- Required fields --->
21+
- [ ] I have completely filled out this template
22+
- [ ] I have confirmed that this issue exists on the current `master` branch
23+
- [ ] I have confirmed that this is not a duplicate issue by searching [issues](https://github.com/QuantConnect/Lean/issues)
24+
<!--- Required for Bugs, feature request can delete the line below. -->
25+
- [ ] I have provided detailed steps to reproduce the issue
26+
27+
<!--- Template inspired by https://github.com/stevemao/github-issue-templates -->

.github/pull_request_template.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
<!--- Provide a general summary of your changes in the Title above -->
3+
4+
#### Description
5+
<!--- Describe your changes in detail -->
6+
7+
#### Related Issue
8+
<!--- This project only accepts pull requests related to open issues -->
9+
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
10+
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
11+
<!--- Please link to the issue here: -->
12+
13+
#### Motivation and Context
14+
<!--- Why is this change required? What problem does it solve? -->
15+
16+
#### Requires Documentation Change
17+
<!--- Please indicate if these changes will require updates to documentation, and if so, specify what changes are required -->
18+
19+
#### How Has This Been Tested?
20+
<!--- Please describe in detail how you tested your changes. -->
21+
<!--- Include details of your testing environment, and the tests you ran to -->
22+
<!--- see how your change affects other areas of the code, etc. -->
23+
24+
#### Types of changes
25+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
26+
- [ ] Bug fix (non-breaking change which fixes an issue)
27+
- [ ] Refactor (non-breaking change which improves implementation)
28+
- [ ] Performance (non-breaking change which improves performance. Please add associated performance test and results)
29+
- [ ] New feature (non-breaking change which adds functionality)
30+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
31+
- [ ] Non-functional change (xml comments/documentation/etc)
32+
33+
#### Checklist:
34+
<!--- The following is a checklist of items that MUST be completed before a PR is accepted -->
35+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
36+
- [ ] My code follows the code style of this project.
37+
- [ ] I have read the **CONTRIBUTING** [document](https://github.com/QuantConnect/Lean/blob/master/CONTRIBUTING.md).
38+
- [ ] I have added tests to cover my changes. <!--- If not applicable, please explain why -->
39+
- [ ] All new and existing tests passed.
40+
- [ ] My branch follows the naming convention `bug-<issue#>-<description>` or `feature-<issue#>-<description>`
41+
42+
<!--- Template inspired by https://www.talater.com/open-source-templates/#/page/99 -->

.github/workflows/gh-actions.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build & Test
2+
3+
on:
4+
push:
5+
branches: ['*']
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-20.04
10+
env:
11+
QC_TEMPLATE_BROKERAGE_KEY: ${{ secrets.QC_TEMPLATE_BROKERAGE_KEY }}
12+
QC_TEMPLATE_BROKERAGE_SECRET: ${{ secrets.QC_TEMPLATE_BROKERAGE_SECRET }}
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- name: Free space
17+
run: df -h && sudo rm -rf /usr/local/lib/android && sudo rm -rf /opt/ghc && rm -rf /opt/hostedtoolcache* && df -h
18+
19+
- uses: addnab/docker-run-action@v3
20+
with:
21+
image: quantconnect/lean:foundation
22+
options: --workdir /__w/Lean.Brokerages.Template/Lean.Brokerages.Template -v /home/runner/work:/__w -e QC_TEMPLATE_BROKERAGE_KEY=${{ secrets.QC_TEMPLATE_BROKERAGE_KEY }} -e QC_TEMPLATE_BROKERAGE_SECRET=${{ secrets.QC_TEMPLATE_BROKERAGE_SECRET }} -e QC_JOB_USER_ID=${{ secrets.QC_JOB_USER_ID }} -e QC_API_ACCESS_TOKEN=${{ secrets.QC_API_ACCESS_TOKEN }} -e QC_JOB_ORGANIZATION_ID=${{ secrets.QC_JOB_ORGANIZATION_ID }}
23+
24+
- name: Checkout Lean Same Branch
25+
id: lean-same-branch
26+
uses: actions/checkout@v2
27+
continue-on-error: true
28+
with:
29+
ref: ${{ github.ref }}
30+
repository: QuantConnect/Lean
31+
path: Lean
32+
33+
- name: Checkout Lean Master
34+
if: steps.lean-same-branch.outcome != 'success'
35+
uses: actions/checkout@v2
36+
with:
37+
repository: QuantConnect/Lean
38+
path: Lean
39+
40+
- name: Move Lean
41+
run: mv Lean ../Lean
42+
43+
- name: Build
44+
run: dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.TemplateBrokerage.sln
45+
46+
- name: Run Tests
47+
run: dotnet test ./QuantConnect.TemplateBrokerage.Tests/bin/Release/QuantConnect.Brokerages.Template.Tests.dll

0 commit comments

Comments
 (0)