Skip to content

Commit 38aa845

Browse files
Dotnet 9
1 parent 923cb82 commit 38aa845

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

.github/workflows/build.yml

Lines changed: 16 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-
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 }}
16-
QC_ALPHA_VANTAGE_API_KEY: ${{ secrets.QC_ALPHA_VANTAGE_API_KEY }}
11+
runs-on: ubuntu-24.04
1712
steps:
1813
- name: Checkout
1914
uses: actions/checkout@v2
2015

21-
- name: Free space
22-
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
2323

2424
- name: Checkout Lean Same Branch
2525
id: lean-same-branch
@@ -45,12 +45,11 @@ jobs:
4545
with:
4646
image: quantconnect/lean:foundation
4747
options: -v /home/runner/work:/__w --workdir /__w/Lean.DataSource.AlphaVantage/Lean.DataSource.AlphaVantage -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 }} -e QC_ALPHA_VANTAGE_API_KEY=${{ secrets.QC_ALPHA_VANTAGE_API_KEY }}
48-
49-
- name: Build QuantConnect.DataSource.AlphaVantage
50-
run: dotnet build ./QuantConnect.AlphaVantage/QuantConnect.DataSource.AlphaVantage.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
51-
52-
- name: Build QuantConnect.DataSource.AlphaVantage.Tests
53-
run: dotnet build ./QuantConnect.AlphaVantage.Tests/QuantConnect.DataSource.AlphaVantage.Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
54-
55-
- name: Run QuantConnect.DataSource.AlphaVantage.Tests
56-
run: dotnet test ./QuantConnect.AlphaVantage.Tests/bin/Release/QuantConnect.Lean.DataSource.AlphaVantage.Tests.dll
48+
shell: bash
49+
run: |
50+
# Build QuantConnect.DataSource.AlphaVantage
51+
dotnet build ./QuantConnect.AlphaVantage/QuantConnect.DataSource.AlphaVantage.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \
52+
# Build QuantConnect.DataSource.AlphaVantage.Tests
53+
dotnet build ./QuantConnect.AlphaVantage.Tests/QuantConnect.DataSource.AlphaVantage.Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \
54+
# Run QuantConnect.DataSource.AlphaVantage.Tests
55+
dotnet test ./QuantConnect.AlphaVantage.Tests/bin/Release/QuantConnect.Lean.DataSource.AlphaVantage.Tests.dll

QuantConnect.AlphaVantage.Tests/QuantConnect.DataSource.AlphaVantage.Tests.csproj

Lines changed: 6 additions & 5 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
<IsPackable>false</IsPackable>
88
<TestProjectType>UnitTest</TestProjectType>
99
<OutputPath>bin\$(Configuration)\</OutputPath>
@@ -17,15 +17,16 @@
1717
<ItemGroup>
1818
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
1919
<PackageReference Include="Moq" Version="4.20.70" />
20-
<PackageReference Include="NUnit" Version="3.13.3" />
21-
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2">
20+
<PackageReference Include="NUnit" Version="4.2.2" />
21+
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
2222
<PrivateAssets>all</PrivateAssets>
23-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2423
</PackageReference>
2524
<PackageReference Include="NUnit.Analyzers" Version="3.6.1" />
2625
<PackageReference Include="coverlet.collector" Version="3.2.0" />
2726
</ItemGroup>
28-
27+
<ItemGroup>
28+
<Using Include="NUnit.Framework.Legacy.ClassicAssert" Alias="Assert" />
29+
</ItemGroup>
2930
<ItemGroup>
3031
<ProjectReference Include="..\QuantConnect.AlphaVantage\QuantConnect.DataSource.AlphaVantage.csproj" />
3132
<ProjectReference Include="..\..\Lean\Tests\QuantConnect.Tests.csproj" />

QuantConnect.AlphaVantage/QuantConnect.DataSource.AlphaVantage.csproj

Lines changed: 1 addition & 1 deletion
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
<Product>QuantConnect.Lean.DataSource.AlphaVantage</Product>
88
<AssemblyName>QuantConnect.Lean.DataSource.AlphaVantage</AssemblyName>
99
<RootNamespace>QuantConnect.Lean.DataSource.AlphaVantage</RootNamespace>

0 commit comments

Comments
 (0)