Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Molinero committed Nov 1, 2023
1 parent 52b52fc commit d45cf83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/gh-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ jobs:
QC_JOB_USER_ID: ${{ secrets.JOB_USER_ID }}
QC_API_ACCESS_TOKEN: ${{ secrets.API_ACCESS_TOKEN }}
QC_JOB_ORGANIZATION_ID: ${{ secrets.JOB_ORGANIZATION_ID }}
container:
image: quantconnect/lean:foundation
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
- name: Free space
run: df -h && rm -rf /opt/hostedtoolcache* && df -h

- uses: addnab/docker-run-action@v3
with:
image: quantconnect/lean:foundation
options: --workdir /__w/Lean.Brokerages.Tradier/Lean.Brokerages.Tradier -v /home/runner/work:/__w -e QC_TRADIER_ENVIRONMENT=${{ secrets.QC_TRADIER_ENVIRONMENT }} -e QC_TRADIER_ACCESS_TOKEN=${{ secrets.QC_TRADIER_ACCESS_TOKEN }} -e QC_TRADIER_ACCOUNT_ID=${{ secrets.QC_TRADIER_ACCOUNT_ID }} -e QC_JOB_USER_ID=${{ secrets.JOB_USER_ID }} -e QC_API_ACCESS_TOKEN=${{ secrets.API_ACCESS_TOKEN }} -e QC_JOB_ORGANIZATION_ID=${{ secrets.JOB_ORGANIZATION_ID }}

- name: Checkout Lean Same Branch
id: lean-same-branch
Expand Down
3 changes: 3 additions & 0 deletions QuantConnect.TradierBrokerage.Tests/TestSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using System.Collections;
using QuantConnect.Logging;
using QuantConnect.Configuration;
using QuantConnect.Python;

namespace QuantConnect.Tests.Brokerages.Tradier
{
Expand Down Expand Up @@ -58,6 +59,8 @@ public static void ReloadConfiguration()
Globals.Reset();

TestGlobals.Initialize();

PythonInitializer.Initialize();
}

private static void SetUp()
Expand Down

0 comments on commit d45cf83

Please sign in to comment.