Skip to content

Commit

Permalink
Try to bump up runners
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jan 8, 2025
1 parent a2b46bf commit 15cd30f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
# https://github.com/pytest-dev/pytest/issues/3216#issuecomment-2572882817
- name: Run test scripts
run: |
poetry run pytest --tb=native --dist loadscope -n 2 --durations=20 -m "not slow_test_group" --timeout=300
poetry run pytest --tb=native --dist loadscope -n 4 --durations=20 -m "not slow_test_group" --timeout=300
env:
TRADING_STRATEGY_API_KEY: ${{ secrets.TRADING_STRATEGY_API_KEY }}
BNB_CHAIN_JSON_RPC: ${{ secrets.BNB_CHAIN_JSON_RPC }}
Expand Down
2 changes: 1 addition & 1 deletion deps/trading-strategy
3 changes: 3 additions & 0 deletions tradeexecutor/strategy/trading_strategy_universe.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ class Dataset:
#: How much back we looked from today
history_period: Optional[datetime.timedelta] = None

def __repr__(self):
return f"<Dataset pairs:{len(self.pairs)} candles:{len(self.candles)} start:{self.start_at} end:{self.end_at} live history period:{self.history_period}>"

def get_chain_ids(self) -> Set[ChainId]:
"""Get all chain ids on this dataset."""
return {e.chain_id for e in self.exchanges.exchanges}
Expand Down

0 comments on commit 15cd30f

Please sign in to comment.