From db67b53324fa1401090cbd2f25c693aaae0e4cca Mon Sep 17 00:00:00 2001 From: Martin Molinero Date: Fri, 13 Dec 2024 17:49:31 -0300 Subject: [PATCH] Dotnet 9 --- .github/workflows/build.yml | 33 +++++++++---------- .../QuantConnect.DataSource.IEX.Tests.csproj | 11 ++++--- .../QuantConnect.DataSource.IEX.csproj | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54636cb..4ef67ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,18 +8,18 @@ on: jobs: build: - runs-on: ubuntu-20.04 - env: - QC_JOB_USER_ID: ${{ secrets.QC_JOB_USER_ID }} - QC_API_ACCESS_TOKEN: ${{ secrets.QC_API_ACCESS_TOKEN }} - QC_JOB_ORGANIZATION_ID: ${{ secrets.QC_JOB_ORGANIZATION_ID }} - QC_IEX_CLOUD_API_KEY: ${{ secrets.QC_IEX_CLOUD_API_KEY }} + 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: Checkout Lean Same Branch id: lean-same-branch @@ -45,12 +45,11 @@ jobs: with: image: quantconnect/lean:foundation options: -v /home/runner/work:/__w --workdir /__w/Lean.DataSource.IEX/Lean.DataSource.IEX -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_IEX_CLOUD_API_KEY=${{ secrets.QC_IEX_CLOUD_API_KEY }} - - - name: BuildDataSource - run: dotnet build ./QuantConnect.IEX/QuantConnect.DataSource.IEX.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 - - - name: BuildDataSourceTests - run: dotnet build ./QuantConnect.IEX.Tests/QuantConnect.DataSource.IEX.Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 - - - name: Run Tests - run: dotnet test ./QuantConnect.IEX.Tests/bin/Release/QuantConnect.Lean.DataSource.IEX.Tests.dll \ No newline at end of file + shell: bash + run: | + # BuildDataSource + dotnet build ./QuantConnect.IEX/QuantConnect.DataSource.IEX.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # BuildDataSourceTests + dotnet build ./QuantConnect.IEX.Tests/QuantConnect.DataSource.IEX.Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # Run Tests + dotnet test ./QuantConnect.IEX.Tests/bin/Release/QuantConnect.Lean.DataSource.IEX.Tests.dll \ No newline at end of file diff --git a/QuantConnect.IEX.Tests/QuantConnect.DataSource.IEX.Tests.csproj b/QuantConnect.IEX.Tests/QuantConnect.DataSource.IEX.Tests.csproj index 8de6415..6703985 100644 --- a/QuantConnect.IEX.Tests/QuantConnect.DataSource.IEX.Tests.csproj +++ b/QuantConnect.IEX.Tests/QuantConnect.DataSource.IEX.Tests.csproj @@ -3,7 +3,7 @@ Release AnyCPU - net6.0 + net9.0 false UnitTest bin\$(Configuration)\ @@ -15,16 +15,17 @@ - - + + all - runtime; build; native; contentfiles; analyzers; buildtransitive - + + + diff --git a/QuantConnect.IEX/QuantConnect.DataSource.IEX.csproj b/QuantConnect.IEX/QuantConnect.DataSource.IEX.csproj index b6ac760..6038bfd 100644 --- a/QuantConnect.IEX/QuantConnect.DataSource.IEX.csproj +++ b/QuantConnect.IEX/QuantConnect.DataSource.IEX.csproj @@ -3,7 +3,7 @@ Release AnyCPU - net6.0 + net9.0 QuantConnect.Lean.DataSource.IEX QuantConnect.Lean.DataSource.IEX QuantConnect.Lean.DataSource.IEX