-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathweekly-north-star-experiment.yml
More file actions
75 lines (64 loc) · 2.02 KB
/
Copy pathweekly-north-star-experiment.yml
File metadata and controls
75 lines (64 loc) · 2.02 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
69
70
71
72
73
74
75
name: Weekly North Star Experiment
on:
schedule:
- cron: "40 14 * * 1"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: weekly-north-star-experiment
cancel-in-progress: true
jobs:
weekly-experiment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install dependencies
run: pip install requests==2.32.5
- name: Compute and enforce north star guardrail
env:
PYTHONPATH: .
POSTHOG_PERSONAL_API_KEY: ${{ secrets.POSTHOG_PERSONAL_API_KEY }}
POSTHOG_PROJECT_ID: ${{ secrets.POSTHOG_PROJECT_ID }}
run: |
python scripts/north_star_guardrail.py \
--repo-root . \
--lookback-days 30 \
--wqtu-window-days 7 \
--enforce-guardrail \
--require-posthog-when-active
- name: Refresh attribution funnel snapshot
env:
PYTHONPATH: .
POSTHOG_PERSONAL_API_KEY: ${{ secrets.POSTHOG_PERSONAL_API_KEY }}
POSTHOG_PROJECT_ID: ${{ secrets.POSTHOG_PROJECT_ID }}
run: |
python scripts/attribution_feedback.py \
--repo-root . \
--days 30
- name: Build daily North Star ops input
env:
PYTHONPATH: .
run: |
python scripts/north_star_ops.py --repo-root .
- name: Build weekly experiment brief
env:
PYTHONPATH: .
run: |
python scripts/north_star_experiment.py --repo-root .
- name: Upload experiment artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: weekly-north-star-experiment
path: |
marketing/data/north_star_ops.json
marketing/data/north_star_ops.md
marketing/data/north_star_experiment.json
marketing/data/north_star_experiment.md
retention-days: 1