CI integration
The exit code is the contract. A mechanism regression should fail a build.A workflow
yamlname: mechanismon:pull_request:paths: ["**/reward.py", "**/mechanism.py", "**/validator.py"]jobs:assay:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- uses: yu7dan/assay@mainwith:mechanism: ci/assay_adapter.pyfail-on-regression: "true"
Action outputs
| output | meaning |
|---|---|
| failures | how many scenarios broke the mechanism |
| passed | how many held |
| report | path to the markdown report |
The action writes the table to the job summary as well, so a failing run explains itself without opening the log.
Without the action
- run: assay run assay_adapter.py -f json -o assay.json# exit 0 = every scenario held# exit 1 = at least one broke, and the job fails