diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f404b7e..486f86c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -8,17 +8,28 @@ on:
jobs:
build:
- runs-on: ubuntu-20.04
- container:
- image: quantconnect/lean:foundation
+ runs-on: ubuntu-24.04
steps:
- - uses: actions/checkout@v2
+ - name: Checkout
+ uses: actions/checkout@v2
- - name: BuildDataSource
- run: dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
+ - name: Liberate disk space
+ uses: jlumbroso/free-disk-space@main
+ with:
+ tool-cache: true
+ large-packages: false
+ docker-images: false
+ swap-storage: false
- - 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
+ - uses: addnab/docker-run-action@v3
+ with:
+ image: quantconnect/lean:foundation
+ options: --workdir /__w/Lean.DataSource.QuiverQuantWallStreetBets/Lean.DataSource.QuiverQuantWallStreetBets -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/DataProcessing/DataProcessing.csproj b/DataProcessing/DataProcessing.csproj
index 47eef9d..f064d2b 100644
--- a/DataProcessing/DataProcessing.csproj
+++ b/DataProcessing/DataProcessing.csproj
@@ -2,7 +2,7 @@
Exe
- net6.0
+ net9.0
process
true
diff --git a/QuantConnect.DataSource.csproj b/QuantConnect.DataSource.csproj
index 15532e8..8b9bd6b 100644
--- a/QuantConnect.DataSource.csproj
+++ b/QuantConnect.DataSource.csproj
@@ -1,7 +1,7 @@
- net6.0
+ net9.0
QuantConnect.DataSource
QuantConnect.DataSource.QuiverWallStreetBets
bin\$(Configuration)
diff --git a/tests/QuiverWallStreetBetsTests.cs b/tests/QuiverWallStreetBetsTests.cs
index 1e17b8b..5c816de 100644
--- a/tests/QuiverWallStreetBetsTests.cs
+++ b/tests/QuiverWallStreetBetsTests.cs
@@ -20,13 +20,22 @@
using Newtonsoft.Json;
using NUnit.Framework;
using QuantConnect.Data;
+using QuantConnect.Data.Auxiliary;
using QuantConnect.DataSource;
+using QuantConnect.Interfaces;
+using QuantConnect.Util;
namespace QuantConnect.DataLibrary.Tests
{
[TestFixture]
public class QuiverWallStreetBetsTests
{
+ [OneTimeSetUp]
+ public void Setup()
+ {
+ Composer.Instance.GetExportedValueByTypeName(Configuration.Config.Get("map-file-provider", typeof(LocalDiskMapFileProvider).Name));
+ }
+
[Test]
public void JsonRoundTrip()
{
diff --git a/tests/QuiverWallStreetBetsUniverseTests.cs b/tests/QuiverWallStreetBetsUniverseTests.cs
index 238b493..fd16ef7 100644
--- a/tests/QuiverWallStreetBetsUniverseTests.cs
+++ b/tests/QuiverWallStreetBetsUniverseTests.cs
@@ -24,21 +24,19 @@
using QuantConnect.Data;
using QuantConnect.DataSource;
using QuantConnect.Data.Market;
+using QuantConnect.Data.Auxiliary;
+using QuantConnect.Interfaces;
+using QuantConnect.Util;
namespace QuantConnect.DataLibrary.Tests
{
[TestFixture]
public class QuiverWallStreetBetsUniverseTests
{
- [Test]
- public void JsonRoundTrip()
+ [OneTimeSetUp]
+ public void Setup()
{
- var expected = CreateNewInstance();
- var type = expected.GetType();
- var serialized = JsonConvert.SerializeObject(expected);
- var result = JsonConvert.DeserializeObject(serialized, type);
-
- AssertAreEqual(expected, result);
+ Composer.Instance.GetExportedValueByTypeName(Configuration.Config.Get("map-file-provider", typeof(LocalDiskMapFileProvider).Name));
}
[Test]
diff --git a/tests/Tests.csproj b/tests/Tests.csproj
index 1a4621a..1a542b1 100644
--- a/tests/Tests.csproj
+++ b/tests/Tests.csproj
@@ -1,6 +1,6 @@
- net6.0
+ net9.0
QuantConnect.DataLibrary.Tests
@@ -10,14 +10,17 @@
-
-
+
+
all
+
+
+