From 330696afdb0836f08694bd98ebf3487693bd69db Mon Sep 17 00:00:00 2001 From: Andy Geach Date: Wed, 24 Jan 2024 17:35:44 +0000 Subject: [PATCH 1/3] fix slow tests in master --- .github/workflows/slow-test-develop.yml | 6 +++--- .github/workflows/slow-test-master.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/slow-test-develop.yml b/.github/workflows/slow-test-develop.yml index bf50b9c783..151287d7ba 100644 --- a/.github/workflows/slow-test-develop.yml +++ b/.github/workflows/slow-test-develop.yml @@ -1,8 +1,8 @@ -name: Slow test +name: Slow test (develop) on: schedule: - - cron: '0 1 * * *' + - cron: '0 2 * * *' workflow_dispatch: @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: [ 3.8, 3.7 ] + python-version: [ 3.10.13 ] steps: diff --git a/.github/workflows/slow-test-master.yml b/.github/workflows/slow-test-master.yml index db0ee9e0db..a085edc976 100644 --- a/.github/workflows/slow-test-master.yml +++ b/.github/workflows/slow-test-master.yml @@ -1,8 +1,8 @@ -name: Slow test +name: Slow test (master) on: schedule: - - cron: '30 1 * * 0' + - cron: '0 1 * * 0' workflow_dispatch: From ed6dc546e00bfa1ea0109a62f3a9c6848281c3b3 Mon Sep 17 00:00:00 2001 From: Andy Geach Date: Wed, 24 Jan 2024 17:47:03 +0000 Subject: [PATCH 2/3] black --- sysexecution/stack_handler/roll_orders.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sysexecution/stack_handler/roll_orders.py b/sysexecution/stack_handler/roll_orders.py index dc3851383d..2489c3534c 100644 --- a/sysexecution/stack_handler/roll_orders.py +++ b/sysexecution/stack_handler/roll_orders.py @@ -472,14 +472,17 @@ def get_strategy_name_with_largest_position_for_instrument( ) try: - strategy_name = all_instrument_positions.strategy_name_with_largest_abs_position_for_instrument( - instrument_code - ) + strategy_name = all_instrument_positions.strategy_name_with_largest_abs_position_for_instrument( + instrument_code + ) except: ## corner case where nets out to 0 strategies = diag_positions.get_list_of_strategies_with_positions() strategy_name = strategies[0] - data.log.debug("No strategies have net positions in %s, using arbitrary strategy %s" % (instrument_code, strategy_name)) + data.log.debug( + "No strategies have net positions in %s, using arbitrary strategy %s" + % (instrument_code, strategy_name) + ) return strategy_name From 1c645f7f1e2ccc7358e0d1d68bb33744e0a41a1c Mon Sep 17 00:00:00 2001 From: Andy Geach Date: Wed, 24 Jan 2024 17:48:56 +0000 Subject: [PATCH 3/3] latest action versions --- .github/workflows/slow-test-develop.yml | 11 ++++------- .github/workflows/slow-test-master.yml | 11 ++++------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/slow-test-develop.yml b/.github/workflows/slow-test-develop.yml index 151287d7ba..005051cddc 100644 --- a/.github/workflows/slow-test-develop.yml +++ b/.github/workflows/slow-test-develop.yml @@ -9,21 +9,18 @@ on: jobs: build: - runs-on: ubuntu-20.04 - strategy: - matrix: - python-version: [ 3.10.13 ] + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "develop" - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: '3.10' - name: Install dependencies run: | diff --git a/.github/workflows/slow-test-master.yml b/.github/workflows/slow-test-master.yml index a085edc976..32ba27e130 100644 --- a/.github/workflows/slow-test-master.yml +++ b/.github/workflows/slow-test-master.yml @@ -9,21 +9,18 @@ on: jobs: build: - runs-on: ubuntu-20.04 - strategy: - matrix: - python-version: [ 3.8, 3.7 ] + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: "master" - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: '3.8' - name: Install dependencies run: |