Skip to content

Commit 8ca789e

Browse files
Dotnet 9
1 parent 3c1baa5 commit 8ca789e

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
1515

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
16+
- name: Liberate disk space
17+
uses: jlumbroso/free-disk-space@main
18+
with:
19+
tool-cache: true
20+
large-packages: false
21+
docker-images: false
22+
swap-storage: false
1823

1924
- name: Checkout Lean Same Branch
2025
id: lean-same-branch
@@ -43,8 +48,8 @@ jobs:
4348
shell: bash
4449
run: |
4550
# Build NasdaqDataLink
46-
dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
51+
dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \
4752
# Build Tests NasdaqDataLink
48-
dotnet build ./tests/Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
53+
dotnet build ./tests/Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \
4954
# Run Tests NasdaqDataLink
5055
dotnet test ./tests/bin/Release/net6.0/Tests.dll

QuantConnect.DataSource.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<RootNamespace>QuantConnect.DataSource</RootNamespace>
66
<AssemblyName>QuantConnect.DataSource.NasdaqDataLink</AssemblyName>
77
<OutputPath>bin\$(Configuration)</OutputPath>
@@ -10,7 +10,6 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="QuantConnect.Common" Version="2.5.*" />
13-
<PackageReference Include="protobuf-net" Version="3.1.33" />
1413
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
1514
</ItemGroup>
1615

tests/Tests.csproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
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>
77
<Compile Include="..\Demonstration.cs" Link="Demonstration.cs" />
88
</ItemGroup>
99
<ItemGroup>
10-
<PackageReference Include="protobuf-net" Version="3.1.33" />
11-
<PackageReference Include="NUnit" Version="3.13.3" />
12-
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1">
10+
<PackageReference Include="NUnit" Version="4.2.2" />
11+
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
1312
<PrivateAssets>all</PrivateAssets>
1413
</PackageReference>
1514
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
@@ -19,4 +18,7 @@
1918
<ItemGroup>
2019
<ProjectReference Include="..\QuantConnect.DataSource.csproj" />
2120
</ItemGroup>
21+
<ItemGroup>
22+
<Using Include="NUnit.Framework.Legacy.ClassicAssert" Alias="Assert" />
23+
</ItemGroup>
2224
</Project>

0 commit comments

Comments
 (0)