From 3617d62059fd866dda13e5e71231c99e66e24ef4 Mon Sep 17 00:00:00 2001 From: Martin Molinero Date: Mon, 23 Dec 2024 17:49:52 -0300 Subject: [PATCH] Update to net9 --- .github/workflows/build.yml | 37 +++++++++++++++------------- DataProcessing/DataProcessing.csproj | 2 +- QuantConnect.DataSource.csproj | 3 +-- tests/Tests.csproj | 10 +++++--- 4 files changed, 28 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f454bf8..b113186 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,27 +9,30 @@ 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: BuildDataProcessing - run: dotnet build ./DataProcessing/DataProcessing.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 --filter "TestCategory!=TravisExclude" + options: --workdir /__w/Lean.DataSource.VIXCentral/Lean.DataSource.VIXCentral -v /home/runner/work:/__w + shell: bash + run: | + # BuildDataSource + dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # BuildDataProcessing + dotnet build ./DataProcessing/DataProcessing.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 --filter "TestCategory!=TravisExclude" diff --git a/DataProcessing/DataProcessing.csproj b/DataProcessing/DataProcessing.csproj index 1999ae4..480fec0 100644 --- a/DataProcessing/DataProcessing.csproj +++ b/DataProcessing/DataProcessing.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net9.0 process QuantConnect.DataProcessing false diff --git a/QuantConnect.DataSource.csproj b/QuantConnect.DataSource.csproj index c016d7a..f7020a1 100644 --- a/QuantConnect.DataSource.csproj +++ b/QuantConnect.DataSource.csproj @@ -1,7 +1,7 @@ - net6.0 + net9.0 QuantConnect.DataSource QuantConnect.DataSource.VIXCentralContango bin\$(Configuration) @@ -12,7 +12,6 @@ - diff --git a/tests/Tests.csproj b/tests/Tests.csproj index 5244130..338c1a5 100644 --- a/tests/Tests.csproj +++ b/tests/Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net9.0 QuantConnect.DataLibrary.Tests false false @@ -12,15 +12,17 @@ - - - + + all + + +