-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (59 loc) · 1.9 KB
/
run-scripts.yml
File metadata and controls
60 lines (59 loc) · 1.9 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
name: Run scripts
on:
schedule:
# Run every Monday at 00:45 UTC
- cron: "45 0 * * 1"
workflow_dispatch:
jobs:
anchor-measurements:
name: Process anchor measurements
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4.2.2
- name: Setup Python
uses: actions/setup-python@v5.6.0
with:
python-version: 3.13
cache: pip
- name: Install Python requirements
run: pip install -r requirements.txt
- name: Run anchor measurement pipeline
run: python3 -m scripts.anchor_measurements
- name: Pull again in case parallel job finished
run: git pull
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git add data/*
git add stats/*
timestamp=$(date -u --rfc-3339=date)
git commit -m "Anchor measurements: ${timestamp}"
git push
hallucinating-probes:
name: Process hallucinating probes
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4.2.2
- name: Setup Python
uses: actions/setup-python@v5.6.0
with:
python-version: 3.13
cache: pip
- name: Install Python requirements
run: pip install -r requirements.txt
- name: Run hallucinating probes pipeline
run: python3 -m scripts.hallucinating_probes
- name: Pull again in case parallel job finished
run: git pull
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git add data/*
git add stats/*
timestamp=$(date -u --rfc-3339=date)
git commit -m "Hallucinating probes: ${timestamp}"
git push