diff --git a/.github/workflows/gh-actions.yml b/.github/workflows/gh-actions.yml
index b164650..e5664bf 100644
--- a/.github/workflows/gh-actions.yml
+++ b/.github/workflows/gh-actions.yml
@@ -6,7 +6,7 @@ on:
jobs:
build:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-24.04
env:
QC_ALPACA_API_KEY: ${{ secrets.QC_ALPACA_API_KEY }}
QC_ALPACA_API_SECRET: ${{ secrets.QC_ALPACA_API_SECRET }}
@@ -18,13 +18,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- - name: Free space
- run: df -h && sudo rm -rf /usr/local/lib/android && sudo rm -rf /opt/ghc && rm -rf /opt/hostedtoolcache* && df -h
- - uses: addnab/docker-run-action@v3
+ - name: Liberate disk space
+ uses: jlumbroso/free-disk-space@main
with:
- image: quantconnect/lean:foundation
- options: --workdir /__w/Lean.Brokerages.Alpaca/Lean.Brokerages.Alpaca -v /home/runner/work:/__w -e QC_ALPACA_API_KEY=${{ secrets.QC_ALPACA_API_KEY }} -e QC_ALPACA_API_SECRET=${{ secrets.QC_ALPACA_API_SECRET }} -e QC_ALPACA_ACCESS_TOKEN=${{ secrets.QC_ALPACA_ACCESS_TOKEN }} -e QC_ALPACA_PAPER_TRADING=${{ secrets.QC_ALPACA_PAPER_TRADING }} -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 }}
+ tool-cache: true
+ large-packages: false
+ docker-images: false
+ swap-storage: false
- name: Checkout Lean Same Branch
id: lean-same-branch
@@ -45,8 +46,13 @@ jobs:
- name: Move Lean
run: mv Lean ../Lean
- - name: Build
- run: dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.AlpacaBrokerage.sln
-
- - name: Run Tests
- run: dotnet test ./QuantConnect.AlpacaBrokerage.Tests/bin/Release/QuantConnect.Brokerages.Alpaca.Tests.dll
+ - uses: addnab/docker-run-action@v3
+ with:
+ image: quantconnect/lean:foundation
+ options: --workdir /__w/Lean.Brokerages.Alpaca/Lean.Brokerages.Alpaca -v /home/runner/work:/__w -e QC_ALPACA_API_KEY=${{ secrets.QC_ALPACA_API_KEY }} -e QC_ALPACA_API_SECRET=${{ secrets.QC_ALPACA_API_SECRET }} -e QC_ALPACA_ACCESS_TOKEN=${{ secrets.QC_ALPACA_ACCESS_TOKEN }} -e QC_ALPACA_PAPER_TRADING=${{ secrets.QC_ALPACA_PAPER_TRADING }} -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 }}
+ shell: bash
+ run: |
+ # Build
+ dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.AlpacaBrokerage.sln && \
+ # Run Tests
+ dotnet test ./QuantConnect.AlpacaBrokerage.Tests/bin/Release/QuantConnect.Brokerages.Alpaca.Tests.dll
diff --git a/QuantConnect.AlpacaBrokerage.Tests/QuantConnect.AlpacaBrokerage.Tests.csproj b/QuantConnect.AlpacaBrokerage.Tests/QuantConnect.AlpacaBrokerage.Tests.csproj
index edaae68..d2ac494 100644
--- a/QuantConnect.AlpacaBrokerage.Tests/QuantConnect.AlpacaBrokerage.Tests.csproj
+++ b/QuantConnect.AlpacaBrokerage.Tests/QuantConnect.AlpacaBrokerage.Tests.csproj
@@ -1,10 +1,10 @@
- $(NoWarn);NU1605
+ $(NoWarn);NU1605
Release
AnyCPU
- net6.0
+ net9.0
false
Copyright © 2024
@@ -19,14 +19,16 @@
-
-
+
+
all
- runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
@@ -37,8 +39,8 @@
PreserveNewest
-
- ..\QuantConnect.AlpacaBrokerage\Alpaca.Markets.dll
-
-
+
+ ..\QuantConnect.AlpacaBrokerage\Alpaca.Markets.dll
+
+
\ No newline at end of file
diff --git a/QuantConnect.AlpacaBrokerage/QuantConnect.AlpacaBrokerage.csproj b/QuantConnect.AlpacaBrokerage/QuantConnect.AlpacaBrokerage.csproj
index d4d2f33..c85af54 100644
--- a/QuantConnect.AlpacaBrokerage/QuantConnect.AlpacaBrokerage.csproj
+++ b/QuantConnect.AlpacaBrokerage/QuantConnect.AlpacaBrokerage.csproj
@@ -3,7 +3,7 @@
$(NoWarn);NU1605
Release
AnyCPU
- net6.0
+ net9.0
QuantConnect.Brokerages.Alpaca
QuantConnect.Brokerages.Alpaca
QuantConnect.Brokerages.Alpaca