Skip to content

Commit 47c475f

Browse files
Dotnet 9
1 parent 7ca4865 commit 47c475f

File tree

4 files changed

+31
-24
lines changed

4 files changed

+31
-24
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-20.04
12-
11+
runs-on: ubuntu-24.04
1312
steps:
14-
- uses: actions/checkout@v2
15-
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
13+
- name: Checkout
14+
uses: actions/checkout@v2
1815

19-
- name: Pull Foundation Image
20-
uses: addnab/docker-run-action@v3
16+
- name: Liberate disk space
17+
uses: jlumbroso/free-disk-space@main
2118
with:
22-
image: quantconnect/lean:foundation
19+
tool-cache: true
20+
large-packages: false
21+
docker-images: false
22+
swap-storage: false
2323

2424
- name: Checkout Lean Same Branch
2525
id: lean-same-branch
@@ -40,11 +40,15 @@ jobs:
4040
- name: Move Lean
4141
run: mv Lean ../Lean
4242

43-
- name: BuildDataSource
44-
run: dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
45-
46-
- name: BuildTests
47-
run: dotnet build ./tests/Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
48-
49-
- name: Run Tests
50-
run: dotnet test ./tests/bin/Release/net6.0/Tests.dll
43+
- uses: addnab/docker-run-action@v3
44+
with:
45+
image: quantconnect/lean:foundation
46+
options: --workdir /__w/Lean.DataSource.SDK/Lean.DataSource.SDK -v /home/runner/work:/__w
47+
shell: bash
48+
run: |
49+
# BuildDataSource
50+
dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \
51+
# BuildTests
52+
dotnet build ./tests/Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \
53+
# Run Tests
54+
dotnet test ./tests/bin/Release/net9.0/Tests.dll

DataProcessing/DataProcessing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<AssemblyName>process</AssemblyName>
66
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
77
</PropertyGroup>

QuantConnect.DataSource.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net6.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<RootNamespace>QuantConnect.DataSource</RootNamespace>
55
<AssemblyName>QuantConnect.DataSource.MyCustomDataType</AssemblyName>
66
<OutputPath>bin\$(Configuration)</OutputPath>
@@ -9,7 +9,7 @@
99

1010
<ItemGroup>
1111
<PackageReference Include="QuantConnect.Common" Version="2.5.*" />
12-
<PackageReference Include="QuantConnect.Lean.Engine" Version="2.5.*" />
12+
<PackageReference Include="QuantConnect.Lean.Engine" Version="2.5.*" />
1313
<PackageReference Include="protobuf-net" Version="3.1.33" />
1414
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
1515
</ItemGroup>

tests/Tests.csproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net6.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<RootNamespace>QuantConnect.DataLibrary.Tests</RootNamespace>
55
</PropertyGroup>
66
<ItemGroup>
@@ -9,17 +9,20 @@
99
</ItemGroup>
1010
<ItemGroup>
1111
<PackageReference Include="protobuf-net" Version="3.1.33" />
12-
<PackageReference Include="NUnit" Version="3.13.3" />
13-
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1">
12+
<PackageReference Include="NUnit" Version="4.2.2" />
13+
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
1414
<PrivateAssets>all</PrivateAssets>
1515
</PackageReference>
1616
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
1717
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.9.4" />
1818
<PackageReference Include="QuantConnect.Algorithm" Version="2.5.*" />
1919
</ItemGroup>
20+
<ItemGroup>
21+
<Using Include="NUnit.Framework.Legacy.ClassicAssert" Alias="Assert" />
22+
</ItemGroup>
2023
<ItemGroup>
2124
<ProjectReference Include="..\QuantConnect.DataSource.csproj" />
22-
<ProjectReference Include="..\..\Lean\Tests\QuantConnect.Tests.csproj" />
25+
<ProjectReference Include="..\..\Lean\Tests\QuantConnect.Tests.csproj" />
2326
</ItemGroup>
2427
<ItemGroup>
2528
<None Update="config.json">

0 commit comments

Comments
 (0)