-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: run licensecheck to auto-audit our dependencies
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,10 +38,13 @@ jobs: | |
- name: Make sure pre-commit hooks pass | ||
uses: pre-commit/[email protected] | ||
|
||
- name: Minimalist license check | ||
run: | | ||
# Legal check: make sure we don't have or introduce GPL dependencies | ||
if pip-licenses | grep -v 'Artistic License' | grep -v LGPL | grep GNU; then echo 'Please avoid introducing *GPL dependencies'; false; fi | ||
- name: Automated license checking | ||
# Make sure we don't have or introduce dependencies with incompatible licenses. | ||
# Exclusions where auto detection and analysis do not work: | ||
# - pympi-ling is MIT, but not auto-detected. https://github.com/dopefishh/pympi | ||
# - text-unidecode is Artistic License or GPL (at our choice): MIT is | ||
# compatible with the former. https://github.com/kmike/text-unidecode/ | ||
run: licensecheck --zero --ignore-packages pympi-ling text-unidecode | ||
|
||
- uses: codecov/codecov-action@v4 | ||
with: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,7 +73,7 @@ api = [ | |
ci = [ | ||
"readalongs[api]", | ||
"coverage", | ||
"pip-licenses", | ||
"licencecheck", | ||
] | ||
|
||
all = [ | ||
|