Skip to content

Commit

Permalink
Dotnet 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Molinero committed Dec 13, 2024
1 parent 4bbdbf9 commit 97cae1e
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 17 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/gh-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,24 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
env:
QC_BITFINEX_API_SECRET: ${{ secrets.QC_BITFINEX_API_SECRET }}
QC_BITFINEX_API_KEY: ${{ secrets.QC_BITFINEX_API_KEY }}
QC_JOB_USER_ID: ${{ secrets.JOB_USER_ID }}
QC_API_ACCESS_TOKEN: ${{ secrets.API_ACCESS_TOKEN }}
QC_JOB_ORGANIZATION_ID: ${{ secrets.JOB_ORGANIZATION_ID }}
container:
image: quantconnect/lean:foundation
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Liberate disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
large-packages: false
docker-images: false
swap-storage: false

- name: Checkout Lean Same Branch
id: lean-same-branch
Expand All @@ -37,8 +44,13 @@ jobs:
- name: Move Lean
run: mv Lean ../Lean

- name: Build
run: dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.BitfinexBrokerage.sln

- name: Run Tests
run: dotnet test ./QuantConnect.BitfinexBrokerage.Tests/bin/Release/QuantConnect.BitfinexBrokerage.Tests.dll
- uses: addnab/docker-run-action@v3
with:
image: quantconnect/lean:foundation
options: --workdir /__w/LLean.Brokerages.Bitfinex/Lean.Brokerages.Bitfinex -v /home/runner/work:/__w
shell: bash
run: |
# Build
dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.BitfinexBrokerage.sln && \
# Run Tests
dotnet test ./QuantConnect.BitfinexBrokerage.Tests/bin/Release/QuantConnect.BitfinexBrokerage.Tests.dll
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>

<IsPackable>false</IsPackable>
<Copyright>Copyright © 2021</Copyright>
Expand All @@ -18,10 +18,9 @@

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PackageReference Include="NUnit" Version="4.2.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
</ItemGroup>
Expand All @@ -31,11 +30,14 @@
<ProjectReference Include="..\QuantConnect.BitfinexBrokerage.ToolBox\QuantConnect.BitfinexBrokerage.ToolBox.csproj" />
<ProjectReference Include="..\QuantConnect.BitfinexBrokerage\QuantConnect.BitfinexBrokerage.csproj" />
</ItemGroup>

<ItemGroup>
<Using Include="NUnit.Framework.Legacy.ClassicAssert" Alias="Assert" />
</ItemGroup>
<ItemGroup>
<None Remove="config.json" />
<Content Include="config.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
`
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Copyright>Copyright © 2021</Copyright>
<OutputPath>bin\$(Configuration)\</OutputPath>
<Product>QuantConnect.BitfinexBrokerage.ToolBox</Product>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Product>QuantConnect.BitfinexBrokerage</Product>
<AssemblyName>QuantConnect.BitfinexBrokerage</AssemblyName>
<RootNamespace>QuantConnect.BitfinexBrokerage</RootNamespace>
Expand Down

0 comments on commit 97cae1e

Please sign in to comment.