Skip to content

Test cofactor networks generated with the CLI #118

Test cofactor networks generated with the CLI

Test cofactor networks generated with the CLI #118

Workflow file for this run

name: Check for API breaks
on:
pull_request_target:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Check for API breaks
continue-on-error: true
id: check
run: |
pip install griffe
griffe check "openfe" --verbose
- name: Post Comment on Failure
if: steps.check.outcome == 'failure'
uses: actions/github-script@v7
with:
script: |
const prNumber = context.payload.pull_request.number;
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
body: '🚨 API breaking changes detected! 🚨'
});