From 1a288a939b3678f47be6770cba20436429307ef2 Mon Sep 17 00:00:00 2001 From: Martin-Molinero Date: Thu, 19 Dec 2024 14:08:04 -0300 Subject: [PATCH] Dotnet 9 (#10) --- .github/workflows/build.yml | 33 +++++++++---------- ...nnect.DataSource.AlphaVantage.Tests.csproj | 11 ++++--- ...uantConnect.DataSource.AlphaVantage.csproj | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6a82c8..af82c1b 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_ALPHA_VANTAGE_API_KEY: ${{ secrets.QC_ALPHA_VANTAGE_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.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 }} - - - name: Build QuantConnect.DataSource.AlphaVantage - run: dotnet build ./QuantConnect.AlphaVantage/QuantConnect.DataSource.AlphaVantage.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 - - - name: Build QuantConnect.DataSource.AlphaVantage.Tests - run: dotnet build ./QuantConnect.AlphaVantage.Tests/QuantConnect.DataSource.AlphaVantage.Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 - - - name: Run QuantConnect.DataSource.AlphaVantage.Tests - run: dotnet test ./QuantConnect.AlphaVantage.Tests/bin/Release/QuantConnect.Lean.DataSource.AlphaVantage.Tests.dll \ No newline at end of file + shell: bash + run: | + # Build QuantConnect.DataSource.AlphaVantage + dotnet build ./QuantConnect.AlphaVantage/QuantConnect.DataSource.AlphaVantage.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # Build QuantConnect.DataSource.AlphaVantage.Tests + dotnet build ./QuantConnect.AlphaVantage.Tests/QuantConnect.DataSource.AlphaVantage.Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # Run QuantConnect.DataSource.AlphaVantage.Tests + dotnet test ./QuantConnect.AlphaVantage.Tests/bin/Release/QuantConnect.Lean.DataSource.AlphaVantage.Tests.dll \ No newline at end of file diff --git a/QuantConnect.AlphaVantage.Tests/QuantConnect.DataSource.AlphaVantage.Tests.csproj b/QuantConnect.AlphaVantage.Tests/QuantConnect.DataSource.AlphaVantage.Tests.csproj index d90f984..f3c41b7 100644 --- a/QuantConnect.AlphaVantage.Tests/QuantConnect.DataSource.AlphaVantage.Tests.csproj +++ b/QuantConnect.AlphaVantage.Tests/QuantConnect.DataSource.AlphaVantage.Tests.csproj @@ -3,7 +3,7 @@ Release AnyCPU - net6.0 + net9.0 false UnitTest bin\$(Configuration)\ @@ -17,15 +17,16 @@ - - + + all - runtime; build; native; contentfiles; analyzers; buildtransitive - + + + diff --git a/QuantConnect.AlphaVantage/QuantConnect.DataSource.AlphaVantage.csproj b/QuantConnect.AlphaVantage/QuantConnect.DataSource.AlphaVantage.csproj index 2e5c0ad..35b198d 100644 --- a/QuantConnect.AlphaVantage/QuantConnect.DataSource.AlphaVantage.csproj +++ b/QuantConnect.AlphaVantage/QuantConnect.DataSource.AlphaVantage.csproj @@ -3,7 +3,7 @@ Release AnyCPU - net6.0 + net9.0 QuantConnect.Lean.DataSource.AlphaVantage QuantConnect.Lean.DataSource.AlphaVantage QuantConnect.Lean.DataSource.AlphaVantage