Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 2.01 KB

check-api-for-breaking-changes.md

File metadata and controls

47 lines (39 loc) · 2.01 KB

check-api-for-breaking-changes.yml

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.

Inputs

Input variable Necessity Description Default
package-name required The name of the package to check for breaking changes.

Example

# .github/workflows/check-api-for-breaking-changes.yml
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/_reusable-check-api-for-breaking-changes.yml@v0.0.0
    with:
      package-name: my_package_name  # required