ci: fixed long timeout

api-breakage
Morty Space 4 years ago
parent 76692ea0dd
commit 98b88c157f
  1. 4
      .github/workflows/test_release.yml
  2. 2
      tests/test_private.py

@ -1,5 +1,5 @@
--- ---
name: CI / CD name: Test & Release
on: on:
schedule: schedule:
- cron: "* * */5 * *" - cron: "* * */5 * *"
@ -79,7 +79,7 @@ jobs:
- name: Test docs - name: Test docs
run: . activate.sh && cd docs && make doctest && cd .. run: . activate.sh && cd docs && make doctest && cd ..
- name: Test code - name: Test code
timeout-minutes: 10 timeout-minutes: 6
run: . activate.sh && poetry run pytest -v --cov . --cov-report xml:coverage.xml run: . activate.sh && poetry run pytest -v --cov . --cov-report xml:coverage.xml
- name: Send codeclimate analytics - name: Send codeclimate analytics
if: matrix.python-version == '3.10' if: matrix.python-version == '3.10'

@ -27,7 +27,7 @@ def retry(times: int):
times -= 1 times -= 1
if not times: if not times:
raise exc raise exc
while account.get_open_orders(cro.pairs.CRO_USDT): while await account.get_open_orders(cro.pairs.CRO_USDT):
await account.cancel_open_orders(cro.pairs.CRO_USDT) await account.cancel_open_orders(cro.pairs.CRO_USDT)
return wrapper return wrapper

Loading…
Cancel
Save