This workflow will use the griffe
package to check for
any major or breaking changes in a package's API. It requires that the package be using the
src
package layout and the Poetry package manager. It runs on the
ubuntu-latest
runner label, uses the
default version of Python available on the runner, will install the package from the current
working directory of the calling repository using pip install --upgrade .
, and will use the latest
compatible version of griffe
to check for changes.
It uploads a file called breaking_changes.md
as a workflow artifact that can be used with the
publish-api-comparison.yml
workflow to post a comment on Pull Requests with details of changed APIs.
Note
This workflow uses the following GitHub Actions:
See the Workflow file for the currently used versions of each GitHub Action.
Tip
See the Workflow file for implementation details.
Input variable | Necessity | Description | Default |
---|---|---|---|
package-name |
required | The name of the package to check for breaking changes. |
name: Check Public API for Breaking Changes
on:
pull_request:
branches: [main]
jobs:
check-api-for-breaking-changes:
uses:
tektronix/python-package-ci-cd/.github/workflows/[email protected]
with:
package-name: my_package_name # required