ci: add license compliance check to CI pipeline - #6
Merged
Conversation
- New license-check job diffs PR against base branch for dependency changes - Fails CI when pyproject.toml changes but NOTICE or THIRD_PARTY_LICENSES.md not updated - build job depends on license-check (failure blocks packaging) - test job only depends on lint (license issues don't block tests) - Push events skip the check early (no base_ref to diff against) Signed-off-by: dongjiang <dongjiang1989@126.com>
dongjiang1989
force-pushed
the
bump-check
branch
from
August 28, 2026 09:29
2f34e30 to
44b97c9
Compare
KnightYao
approved these changes
Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a license compliance check to the CI pipeline that ensures
NOTICEandTHIRD_PARTY_LICENSES.mdstay in sync when dependencies change.Changes:
license-checkjob incheck.ymlthat diffs PR against base branchpyproject.tomlchanged butNOTICEorTHIRD_PARTY_LICENSES.mdwere not updatedbuildjob depends onlicense-check(failure blocks packaging)testjob only depends onlint(license issues don't block tests)Checklist
buildblocked when license files not updated alongside dependency changestestindependent of license checkSpecial notes for reviewers
Job dependency graph: