mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +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
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: 'true'
|
# lfs: 'true'
|
||||||
ssh-key: ${{ secrets.git_ssh_key }}
|
ssh-key: ${{ secrets.git_ssh_key }}
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
|
|
|
@ -15,6 +15,7 @@ import (
|
||||||
"github.com/c9s/bbgo/pkg/fixedpoint"
|
"github.com/c9s/bbgo/pkg/fixedpoint"
|
||||||
"github.com/c9s/bbgo/pkg/types"
|
"github.com/c9s/bbgo/pkg/types"
|
||||||
"github.com/c9s/bbgo/pkg/types/mocks"
|
"github.com/c9s/bbgo/pkg/types/mocks"
|
||||||
|
"github.com/c9s/bbgo/pkg/util"
|
||||||
|
|
||||||
gridmocks "github.com/c9s/bbgo/pkg/strategy/grid2/mocks"
|
gridmocks "github.com/c9s/bbgo/pkg/strategy/grid2/mocks"
|
||||||
)
|
)
|
||||||
|
@ -816,6 +817,11 @@ func TestStrategy_checkMinimalQuoteInvestment(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBacktestStrategy(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{
|
market := types.Market{
|
||||||
BaseCurrency: "BTC",
|
BaseCurrency: "BTC",
|
||||||
QuoteCurrency: "USDT",
|
QuoteCurrency: "USDT",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user