Skip to content

Commit

Permalink
add test flag and disable lfs in test
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 9, 2022
1 parent dac1cd0 commit fd8a2d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- uses: actions/checkout@v2
with:
lfs: 'true'
# lfs: 'true'
ssh-key: ${{ secrets.git_ssh_key }}

- uses: actions/cache@v2
Expand Down
6 changes: 6 additions & 0 deletions pkg/strategy/grid2/strategy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/c9s/bbgo/pkg/fixedpoint"
"github.com/c9s/bbgo/pkg/types"
"github.com/c9s/bbgo/pkg/types/mocks"
"github.com/c9s/bbgo/pkg/util"

gridmocks "github.com/c9s/bbgo/pkg/strategy/grid2/mocks"
)
Expand Down Expand Up @@ -816,6 +817,11 @@ func TestStrategy_checkMinimalQuoteInvestment(t *testing.T) {
}

func TestBacktestStrategy(t *testing.T) {
if v, ok := util.GetEnvVarBool("TEST_BACKTEST"); !ok || !v {
t.Skip("backtest flag is required")
return
}

market := types.Market{
BaseCurrency: "BTC",
QuoteCurrency: "USDT",
Expand Down

0 comments on commit fd8a2d8

Please sign in to comment.