Installing the package provides a bdp-model-gate console script, intended as
a pre-deployment step — after training, before promotion. Not a per-PR
check.
a function returning a model or fn(DataFrame) -> array
Mutually exclusive. Use --model-loader for anything joblib cannot
unpickle — PyTorch checkpoints, Keras SavedModel, ONNX, a remote endpoint.
Your loader does the framework import, so this package needs no
deep-learning dependency.
-name:Model governance gateid:gatecontinue-on-error:truerun:|bdp-model-gate --model model.joblib --data validation.csv \--target-col label --protected protected.csv \--model-card model_card.json --output gate_report.json-name:Block on hard failureif:steps.gate.outcome == 'failure'run:exit 1# exit 2 -> route to an environment with required reviewers
Ready-to-adapt GitHub Actions and Azure Pipelines examples ship in
ci_examples/.
Both structure it as three stages: run the gate, a manual approval gated
behind exit code 2, and a deploy that runs only if the gate passed outright
or was approved.