Skip to content

Commit b4b6c3c

Browse files
committed
ci: add licensecheck to CI
The `licensecheck` tool https://pypi.org/project/licensecheck/ is used to ensure all 3rd party python package dependencies are compatible with our project license Apache 2.0. The CI check will fail if incompatible dependencies are added. Signed-off-by: James McCorrie <james.mccorrie@lowrisc.org>
1 parent da633ce commit b4b6c3c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
- name: License header check
4242
run: scripts/license_check.py
4343

44+
- name: Dependency license check
45+
run: |
46+
# Ignore MPL 2.0 which is weak copy left
47+
uv tool run licensecheck --zero --ignore-licenses "MPL 2.0"
48+
4449
- name: Lint with Ruff
4550
run: |
4651
ruff format --check

0 commit comments

Comments
 (0)