Skip to content

V2 Strength Model

V2 Strength Model #23

Workflow file for this run

# 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