From 9d03b16f6777423e47595fb852b5a0c89c6704e4 Mon Sep 17 00:00:00 2001 From: Martin-Molinero Date: Mon, 23 Dec 2024 11:35:19 -0300 Subject: [PATCH] Dotnet 9 (#12) --- .github/workflows/build.yml | 32 ++++++++++++++++++-------------- QuantConnect.DataSource.csproj | 3 +-- tests/Tests.csproj | 10 ++++++---- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1bff3f..81ec3a4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,24 +8,28 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v2 - - name: Free space - run: df -h && rm -rf /opt/hostedtoolcache* && df -h + - name: Liberate disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: true + large-packages: false + docker-images: false + swap-storage: false - - name: Pull Foundation Image - uses: addnab/docker-run-action@v3 + - uses: addnab/docker-run-action@v3 with: image: quantconnect/lean:foundation - - - name: BuildDataSource - run: dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 - - - name: BuildTests - run: dotnet build ./tests/Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 - - - name: Run Tests - run: dotnet test ./tests/bin/Release/net6.0/Tests.dll + options: --workdir /__w/Lean.DataSource.FRED/Lean.DataSource.FRED -v /home/runner/work:/__w + shell: bash + run: | + # BuildDataSource + dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # BuildTests + dotnet build ./tests/Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # Run Tests + dotnet test ./tests/bin/Release/net9.0/Tests.dll diff --git a/QuantConnect.DataSource.csproj b/QuantConnect.DataSource.csproj index 3ec685e..ffcbbb6 100644 --- a/QuantConnect.DataSource.csproj +++ b/QuantConnect.DataSource.csproj @@ -1,7 +1,7 @@ - net6.0 + net9.0 QuantConnect.DataSource QuantConnect.DataSource.FRED bin\$(Configuration) @@ -10,7 +10,6 @@ - diff --git a/tests/Tests.csproj b/tests/Tests.csproj index 4acafb4..dfdaa23 100644 --- a/tests/Tests.csproj +++ b/tests/Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net9.0 QuantConnect.DataLibrary.Tests @@ -12,15 +12,17 @@ - - - + + all + + +