-
Notifications
You must be signed in to change notification settings - Fork 42
64 lines (57 loc) · 1.72 KB
/
Copy pathstrength-parity.yml
File metadata and controls
64 lines (57 loc) · 1.72 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
# Verifies that ``boxcrete.load_pretrained_strength_gp()`` faithfully
# reconstructs the deployed V2 strength GP from
# ``docs/model/strength_model.pt``.
#
# Runs:
# - test/test_pretrained_loader_fidelity.py (atol=1e-5 / 1e-3, ~3s)
#
# See that test file for the rationale.
name: Strength GP Parity
permissions:
contents: read
on:
push:
branches: [main, master]
paths:
- 'boxcrete/strength_model.py'
- 'boxcrete/kernels.py'
- 'boxcrete/likelihoods.py'
- 'boxcrete/priors.py'
- 'boxcrete/features.py'
- 'boxcrete/__init__.py'
- 'test/test_pretrained_loader_fidelity.py'
- 'docs/model/strength.json'
- 'docs/model/strength_model.pt'
- 'docs/model/test_vectors.json'
- '.github/workflows/strength-parity.yml'
pull_request:
branches: [main, master]
paths:
- 'boxcrete/strength_model.py'
- 'boxcrete/kernels.py'
- 'boxcrete/likelihoods.py'
- 'boxcrete/priors.py'
- 'boxcrete/features.py'
- 'boxcrete/__init__.py'
- 'test/test_pretrained_loader_fidelity.py'
- 'docs/model/strength.json'
- 'docs/model/strength_model.pt'
- 'docs/model/test_vectors.json'
- '.github/workflows/strength-parity.yml'
workflow_dispatch: {}
jobs:
parity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python deps
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest
- name: Run pretrained-loader fidelity test
run: python -m pytest test/test_pretrained_loader_fidelity.py -v --tb=short