Skip to content

Commit aefb3fa

Browse files
Dotnet 9
1 parent 5385941 commit aefb3fa

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed

.github/workflows/gh-actions.yml

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

99
jobs:
1010
build:
11-
runs-on: ubuntu-20.04
12-
env:
13-
QC_JOB_USER_ID: ${{ secrets.QC_JOB_USER_ID }}
14-
QC_API_ACCESS_TOKEN: ${{ secrets.QC_API_ACCESS_TOKEN }}
15-
QC_JOB_ORGANIZATION_ID: ${{ secrets.QC_JOB_ORGANIZATION_ID }}
11+
runs-on: ubuntu-24.04
1612
steps:
1713
- name: Checkout
1814
uses: actions/checkout@v2
1915

20-
- name: Free space
21-
run: df -h && 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
2223

2324
- name: Checkout Lean Same Branch
2425
id: lean-same-branch
@@ -44,12 +45,11 @@ jobs:
4445
with:
4546
image: quantconnect/lean:foundation
4647
options: -v /home/runner/work:/__w --workdir /__w/Lean.DataSource.IQFeed/Lean.DataSource.IQFeed -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 }}
47-
48-
- name: BuildDataSource
49-
run: dotnet build ./QuantConnect.IQFeed/QuantConnect.DataSource.IQFeed.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
50-
51-
- name: BuildDataSourceTests
52-
run: dotnet build ./QuantConnect.IQFeed.Tests/QuantConnect.DataSource.IQFeed.Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
53-
54-
- name: Run Tests
55-
run: dotnet test ./QuantConnect.IQFeed.Tests/bin/Release/QuantConnect.Lean.DataSource.IQFeed.Tests.dll
48+
shell: bash
49+
run: |
50+
# BuildDataSource
51+
dotnet build ./QuantConnect.IQFeed/QuantConnect.DataSource.IQFeed.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \
52+
# BuildDataSourceTests
53+
dotnet build ./QuantConnect.IQFeed.Tests/QuantConnect.DataSource.IQFeed.Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \
54+
# Run Tests
55+
dotnet test ./QuantConnect.IQFeed.Tests/bin/Release/QuantConnect.Lean.DataSource.IQFeed.Tests.dll

QuantConnect.IQFeed.Tests/IQFeedHistoryProviderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class IQFeedHistoryProviderTests
3434
public void SetUp()
3535
{
3636
_historyProvider = new IQFeedDataProvider();
37-
_historyProvider.Initialize(new HistoryProviderInitializeParameters(null, null, null, null, null, null, null, false, null, null));
37+
_historyProvider.Initialize(new HistoryProviderInitializeParameters(null, null, null, null, null, null, null, false, null, null, null));
3838
}
3939

4040
[TearDown]

QuantConnect.IQFeed.Tests/QuantConnect.DataSource.IQFeed.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>
@@ -13,14 +13,16 @@
1313
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1414
</PropertyGroup>
1515
<ItemGroup>
16-
<PackageReference Include="NUnit" Version="3.13.3" />
17-
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1">
16+
<PackageReference Include="NUnit" Version="4.2.2" />
17+
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
1818
<PrivateAssets>all</PrivateAssets>
19-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2019
</PackageReference>
2120
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
2221
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.9.4" />
2322
</ItemGroup>
23+
<ItemGroup>
24+
<Using Include="NUnit.Framework.Legacy.ClassicAssert" Alias="Assert" />
25+
</ItemGroup>
2426
<ItemGroup>
2527
<ProjectReference Include="..\..\Lean\Tests\QuantConnect.Tests.csproj" />
2628
<ProjectReference Include="..\QuantConnect.IQFeed\QuantConnect.DataSource.IQFeed.csproj" />

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

0 commit comments

Comments
 (0)