Skip to content

Commit df580dd

Browse files
Dotnet 9
1 parent 1ef1b36 commit df580dd

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.github/workflows/gh-actions.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-24.04
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v2
1313

14-
- name: Free space
15-
run: df -h && rm -rf /opt/hostedtoolcache* && df -h
14+
- name: Liberate disk space
15+
uses: jlumbroso/free-disk-space@main
16+
with:
17+
tool-cache: true
18+
large-packages: false
19+
docker-images: false
20+
swap-storage: false
1621

1722
- name: Checkout Lean Same Branch
1823
id: lean-same-branch
@@ -41,6 +46,6 @@ jobs:
4146
shell: bash
4247
run: |
4348
# Build
44-
dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.Polygon.sln
49+
dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.Polygon.sln && \
4550
# Run Tests
4651
dotnet test ./QuantConnect.Polygon.Tests/bin/Release/QuantConnect.Lean.DataSource.Polygon.Tests.dll

QuantConnect.Polygon.Tests/QuantConnect.DataSource.Polygon.Tests.csproj

Lines changed: 6 additions & 4 deletions
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
<IsPackable>false</IsPackable>
77
<TestProjectType>UnitTest</TestProjectType>
88
<OutputPath>bin\$(Configuration)\</OutputPath>
@@ -15,13 +15,15 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
18-
<PackageReference Include="NUnit" Version="3.13.3" />
19-
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2">
18+
<PackageReference Include="NUnit" Version="4.2.2" />
19+
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
2020
<PrivateAssets>all</PrivateAssets>
21-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2221
</PackageReference>
2322
<PackageReference Include="NUnit.Analyzers" Version="3.6.1" />
2423
</ItemGroup>
24+
<ItemGroup>
25+
<Using Include="NUnit.Framework.Legacy.ClassicAssert" Alias="Assert" />
26+
</ItemGroup>
2527

2628
<ItemGroup>
2729
<ProjectReference Include="..\QuantConnect.Polygon\QuantConnect.DataSource.Polygon.csproj" />

QuantConnect.Polygon/QuantConnect.DataSource.Polygon.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.Lean.DataSource.Polygon</Product>
77
<AssemblyName>QuantConnect.Lean.DataSource.Polygon</AssemblyName>
88
<RootNamespace>QuantConnect.Lean.DataSource.Polygon</RootNamespace>

0 commit comments

Comments
 (0)