diff --git a/.github/workflows/gh-actions.yml b/.github/workflows/gh-actions.yml index 750c00d..542991f 100644 --- a/.github/workflows/gh-actions.yml +++ b/.github/workflows/gh-actions.yml @@ -8,17 +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 }} + 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 @@ -44,12 +45,11 @@ jobs: with: image: quantconnect/lean:foundation options: -v /home/runner/work:/__w --workdir /__w/Lean.DataSource.IQFeed/Lean.DataSource.IQFeed -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 }} - - - name: BuildDataSource - run: dotnet build ./QuantConnect.IQFeed/QuantConnect.DataSource.IQFeed.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 - - - name: BuildDataSourceTests - run: dotnet build ./QuantConnect.IQFeed.Tests/QuantConnect.DataSource.IQFeed.Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 - - - name: Run Tests - run: dotnet test ./QuantConnect.IQFeed.Tests/bin/Release/QuantConnect.Lean.DataSource.IQFeed.Tests.dll + shell: bash + run: | + # BuildDataSource + dotnet build ./QuantConnect.IQFeed/QuantConnect.DataSource.IQFeed.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # BuildDataSourceTests + dotnet build ./QuantConnect.IQFeed.Tests/QuantConnect.DataSource.IQFeed.Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1 && \ + # Run Tests + dotnet test ./QuantConnect.IQFeed.Tests/bin/Release/QuantConnect.Lean.DataSource.IQFeed.Tests.dll diff --git a/QuantConnect.IQFeed.Tests/IQFeedHistoryProviderTests.cs b/QuantConnect.IQFeed.Tests/IQFeedHistoryProviderTests.cs index 34b10bc..cac456a 100644 --- a/QuantConnect.IQFeed.Tests/IQFeedHistoryProviderTests.cs +++ b/QuantConnect.IQFeed.Tests/IQFeedHistoryProviderTests.cs @@ -34,7 +34,7 @@ public class IQFeedHistoryProviderTests public void SetUp() { _historyProvider = new IQFeedDataProvider(); - _historyProvider.Initialize(new HistoryProviderInitializeParameters(null, null, null, null, null, null, null, false, null, null)); + _historyProvider.Initialize(new HistoryProviderInitializeParameters(null, null, null, null, null, null, null, false, null, null, null)); } [TearDown] diff --git a/QuantConnect.IQFeed.Tests/QuantConnect.DataSource.IQFeed.Tests.csproj b/QuantConnect.IQFeed.Tests/QuantConnect.DataSource.IQFeed.Tests.csproj index 8f0819c..9dd80f5 100644 --- a/QuantConnect.IQFeed.Tests/QuantConnect.DataSource.IQFeed.Tests.csproj +++ b/QuantConnect.IQFeed.Tests/QuantConnect.DataSource.IQFeed.Tests.csproj @@ -2,7 +2,7 @@ Release AnyCPU - net6.0 + net9.0 false UnitTest bin\$(Configuration)\ @@ -13,14 +13,16 @@ false - - + + all - runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/QuantConnect.IQFeed/QuantConnect.DataSource.IQFeed.csproj b/QuantConnect.IQFeed/QuantConnect.DataSource.IQFeed.csproj index fc51bc6..45c04d8 100644 --- a/QuantConnect.IQFeed/QuantConnect.DataSource.IQFeed.csproj +++ b/QuantConnect.IQFeed/QuantConnect.DataSource.IQFeed.csproj @@ -2,7 +2,7 @@ Release AnyCPU - net6.0 + net9.0 QuantConnect.Lean.DataSource.IQFeed QuantConnect.Lean.DataSource.IQFeed QuantConnect.Lean.DataSource.IQFeed