mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add test flag and disable lfs in test
This commit is contained in:
parent
6c0cc71c1c
commit
096defc331
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
|||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
lfs: 'true'
|
||||
# lfs: 'true'
|
||||
ssh-key: ${{ secrets.git_ssh_key }}
|
||||
|
||||
- uses: actions/cache@v2
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user