Skip to content

Commit e7e82e9

Browse files
Pigbibicodex
andcommitted
chore: allow US equity watcher source
Co-Authored-By: Codex <noreply@openai.com>
1 parent 5f37f07 commit e7e82e9

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/strategy_optimization_watcher.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ jobs:
4141
SOURCE_REF: ${{ github.event.inputs.source_ref || vars.STRATEGY_WATCH_SOURCE_REF || 'main' }}
4242
METRICS_PATH: ${{ github.event.inputs.metrics_path || vars.STRATEGY_WATCH_METRICS_PATH || 'data/output/strategy_metrics.json' }}
4343
STRATEGY_WATCH_DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.dry_run) || vars.STRATEGY_WATCH_DRY_RUN || 'true' }}
44-
ALLOWED_SOURCE_REPOS: ${{ vars.STRATEGY_WATCH_ALLOWED_SOURCE_REPOS || 'QuantStrategyLab/CryptoLivePoolPipelines' }}
44+
# Keep the watcher opt-in (dry-run remains the default), while allowing
45+
# the canonical US-equity metrics producer to be selected without a
46+
# repository-variable migration.
47+
ALLOWED_SOURCE_REPOS: ${{ vars.STRATEGY_WATCH_ALLOWED_SOURCE_REPOS || 'QuantStrategyLab/CryptoLivePoolPipelines,QuantStrategyLab/UsEquitySnapshotPipelines' }}
4548
ALLOWED_SOURCE_REFS: ${{ vars.STRATEGY_WATCH_ALLOWED_SOURCE_REFS || 'main' }}
4649
steps:
4750
- name: Checkout Bridge

tests/test_strategy_optimization_watcher_workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def test_workflow_uses_source_metrics_checkout(self) -> None:
2525

2626
self.assertIn("SOURCE_REPO", text)
2727
self.assertIn("QuantStrategyLab/CryptoLivePoolPipelines", text)
28+
self.assertIn("QuantStrategyLab/UsEquitySnapshotPipelines", text)
2829
self.assertIn("STRATEGY_WATCH_ALLOWED_SOURCE_REPOS", text)
2930
self.assertIn("STRATEGY_WATCH_ALLOWED_SOURCE_REFS", text)
3031
self.assertIn("SOURCE_REF is not allowed", text)

0 commit comments

Comments
 (0)