Repository navigation
60 lines (50 loc) · 1.7 KB
/
Copy pathci.yml
File metadata and controls
60 lines (50 loc) · 1.7 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
name: reproduction gate
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
verify:
name: manifest + reference arm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: requirements.txt
- name: Install stage-3 dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# The gate this repository exists to hold: the release tree must re-fit the Protocol B
# router from the frozen inputs and land on the published AUROC. This runner is not the
# machine the frozen run executed on, so the portable tolerance applies; set
# AFR_STRICT_GATE=1 on that machine to demand the bit-for-bit result instead. Either way
# a drifted dependency or a missing module fails the build rather than silently
# reporting a different system.
- name: Reproduction gate
run: ./reproduce.sh verify
static:
name: syntax and style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Byte-compile every Python file
run: python -m compileall -q code tests
- name: Parse every shell script
run: |
status=0
while IFS= read -r script; do
bash -n "$script" || status=1
done < <(find . -name '*.sh' -not -path './.git/*')
exit $status
- name: Lint
run: |
pip install ruff==0.15.1
ruff check --select E9,F63,F7,F82 code tests