-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #416 from emcek/license_check
Add license checker
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Check License | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
license_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Set up Python 3.13" | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.13" | ||
cache: pip | ||
|
||
- name: "Install requirements" | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -U -r requirements.txt | ||
- name: "Get explicit and transitive dependencies" | ||
run: | | ||
pip freeze > requirements-all.txt | ||
- name: "Check License" | ||
id: license_check_report | ||
uses: pilosus/action-pip-license-checker@v2 | ||
with: | ||
requirements: 'requirements-all.txt' | ||
fail: 'StrongCopyleft,Other,Error' | ||
totals: true | ||
headers: true | ||
|
||
- name: "Print report" | ||
if: ${{ always() }} | ||
run: echo "${{ steps.license_check_report.outputs.report }}" |
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