-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (64 loc) · 2.32 KB
/
Copy pathcross_repo_smoke.yml
File metadata and controls
68 lines (64 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Cross-Repository Advisory Smoke
on:
workflow_dispatch:
inputs:
as_of:
description: "Smoke date. Defaults to the most recently closed UTC date when empty."
required: false
type: string
schedule:
- cron: "45 11 * * 6"
permissions:
contents: read
concurrency:
group: cross-repo-advisory-smoke-${{ github.ref_name }}
cancel-in-progress: false
jobs:
cross-repo-smoke:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout advisor repository
uses: actions/checkout@v6
with:
path: advisor
- name: Checkout political event repository
uses: actions/checkout@v6
with:
repository: QuantStrategyLab/PoliticalEventTrackingResearch
path: political-events
- name: Checkout signal context repository
uses: actions/checkout@v6
with:
repository: QuantStrategyLab/ResearchSignalContextPipelines
path: research-signal-context
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install advisor package
working-directory: advisor
run: python -m pip install -e .
- name: Run deterministic cross-repo smoke
working-directory: advisor
env:
INPUT_AS_OF: ${{ github.event.inputs.as_of || '' }}
run: |
set -euo pipefail
if [ -n "${INPUT_AS_OF}" ]; then
AS_OF="${INPUT_AS_OF}"
else
AS_OF="$(python -c 'from quant_advisor_research.build_pipeline import default_daily_as_of; print(default_daily_as_of().isoformat())')"
fi
python scripts/run_cross_repo_smoke.py \
--as-of "${AS_OF}" \
--political-events ../political-events/data/live/political_events.csv \
--political-watchlist ../political-events/data/live/political_watchlist.csv \
--ai-signal ../research-signal-context/data/output/latest_signal.json \
--theme-momentum ../research-signal-context/data/output/theme_momentum_snapshot.json \
--work-dir data/output/cross_repo_smoke
- name: Upload smoke artifact
uses: actions/upload-artifact@v7
with:
name: cross-repo-advisory-smoke
path: advisor/data/output/cross_repo_smoke/
if-no-files-found: error