add test flag and disable lfs in test

This commit is contained in:
c9s 2022-12-09 17:34:24 +08:00
parent 6c0cc71c1c
commit 096defc331
2 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v2
with:
lfs: 'true'
# lfs: 'true'
ssh-key: ${{ secrets.git_ssh_key }}
- uses: actions/cache@v2

View File

@ -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"
)
@ -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",