Skip to content

Commit

Permalink
Create license-compliance.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samsemasen authored Jul 14, 2024
1 parent 9035e50 commit ec0e1db
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/license-compliance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: License Compliance

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
license-compliance:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- name: Check licenses
run: |
. venv/bin/activate
pip install pip-licenses
pip-licenses --from=mixed --output-file=dependencies_licenses.txt
- name: Upload license reports
uses: actions/upload-artifact@v3
with:
name: dependencies-license-reports
path: dependencies_licenses.txt

- name: License compliance summary
run: echo "License compliance check completed. See artifacts for details."

0 comments on commit ec0e1db

Please sign in to comment.