Skip to content

Commit bd64bc6

Browse files
Feature net9
1 parent c2d1725 commit bd64bc6

File tree

4 files changed

+25
-20
lines changed

4 files changed

+25
-20
lines changed

.github/workflows/gh-actions.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@ on:
66

77
jobs:
88
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 }}
9+
runs-on: ubuntu-24.04
1310
steps:
1411
- name: Checkout
1512
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
1813

19-
- uses: addnab/docker-run-action@v3
14+
- name: Liberate disk space
15+
uses: jlumbroso/free-disk-space@main
2016
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 }}
17+
tool-cache: true
18+
large-packages: false
19+
docker-images: false
20+
swap-storage: false
2321

2422
- name: Checkout Lean Same Branch
2523
id: lean-same-branch
@@ -40,8 +38,13 @@ jobs:
4038
- name: Move Lean
4139
run: mv Lean ../Lean
4240

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
41+
- uses: addnab/docker-run-action@v3
42+
with:
43+
image: quantconnect/lean:foundation
44+
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 }}
45+
shell: bash
46+
run: |
47+
# Build
48+
dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.TemplateBrokerage.sln && \
49+
# Run Tests
50+
dotnet test ./QuantConnect.TemplateBrokerage.Tests/bin/Release/QuantConnect.Brokerages.Template.Tests.dll

QuantConnect.TemplateBrokerage.Tests/QuantConnect.TemplateBrokerage.Tests.csproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
55
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<TargetFramework>net6.0</TargetFramework>
6+
<TargetFramework>net9.0</TargetFramework>
77

88
<IsPackable>false</IsPackable>
99
<Copyright>Copyright © 2021</Copyright>
@@ -18,14 +18,16 @@
1818

1919
<ItemGroup>
2020
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
21-
<PackageReference Include="NUnit" Version="3.13.3" />
22-
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1">
21+
<PackageReference Include="NUnit" Version="4.2.2" />
22+
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
2323
<PrivateAssets>all</PrivateAssets>
24-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2524
</PackageReference>
2625
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
2726
</ItemGroup>
2827

28+
<ItemGroup>
29+
<Using Include="NUnit.Framework.Legacy.ClassicAssert" Alias="Assert" />
30+
</ItemGroup>
2931
<ItemGroup>
3032
<ProjectReference Include="..\..\Lean\Tests\QuantConnect.Tests.csproj" />
3133
<ProjectReference Include="..\QuantConnect.TemplateBrokerage.ToolBox\QuantConnect.TemplateBrokerage.ToolBox.csproj" />

QuantConnect.TemplateBrokerage.ToolBox/QuantConnect.TemplateBrokerage.ToolBox.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
55
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
66
<OutputType>Exe</OutputType>
7-
<TargetFramework>net6.0</TargetFramework>
7+
<TargetFramework>net9.0</TargetFramework>
88
<Copyright>Copyright © 2021</Copyright>
99
<OutputPath>bin\$(Configuration)\</OutputPath>
1010
<Product>QuantConnect.Brokerages.Template.ToolBox</Product>

QuantConnect.TemplateBrokerage/QuantConnect.TemplateBrokerage.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
44
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<Product>QuantConnect.Brokerages.Template</Product>
77
<AssemblyName>QuantConnect.Brokerages.Template</AssemblyName>
88
<RootNamespace>QuantConnect.Brokerages.Template</RootNamespace>

0 commit comments

Comments
 (0)