Skip to content

Commit

Permalink
respond to feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Oct 28, 2024
1 parent f4fb22f commit 36466d5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 23 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/_license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
workflow_call:

jobs:
artifacts:
runs-on: ubuntu-latest

steps:
- name: Dependencies license compliance checker
id: license_check_report
uses: pilosus/action-pip-license-checker@cc7a461bfa27b44ad187b8578c881ef5138c13fd
with:
external: "licenses.csv"
external-format: "csv"
external-options: "{:skip-header false :package-column-index 0 :license-column-index 2}"
report-format: "json-pretty"
formatter: "%-65s %-65s %-20s %-40s"
totals: true
headers: true
fail: "StrongCopyleft,NetworkCopyleft,Other,Error"
verbose: 1
- name: Save report
if: ${{ always() }}
run: echo "${{ steps.license_check_report.outputs.report }}" > license-report.json
- name: Upload artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: license-report
path: license-report.json
23 changes: 0 additions & 23 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,6 @@ jobs:
with:
merge-multiple: true

- name: Dependencies license compliance checker
id: license_check_report
uses: pilosus/action-pip-license-checker@cc7a461bfa27b44ad187b8578c881ef5138c13fd
with:
external: "licenses.csv"
external-format: "csv"
external-options: "{:skip-header false :package-column-index 0 :license-column-index 2}"
report-format: "json-pretty"
formatter: "%-65s %-65s %-20s %-40s"
totals: true
headers: true
fail: "StrongCopyleft,NetworkCopyleft,Other,Error"
verbose: 1
- name: Save report
if: ${{ always() }}
run: echo "${{ steps.license_check_report.outputs.report }}" > license-report.json
- name: Upload artifact
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: license-report
path: license-report.json

- name: Zip up docs
run: |
set -vxeuo pipefail
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
with:
tox: pre-commit,type-checking

license_check:
needs: check
if: needs.check.outputs.branch-pr == ''
uses: ./.github/workflows/_license.yml

test:
needs: check
if: needs.check.outputs.branch-pr == ''
Expand Down

0 comments on commit 36466d5

Please sign in to comment.