-
Notifications
You must be signed in to change notification settings - Fork 5
66 lines (57 loc) · 1.6 KB
/
license_report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
#################################
#################################
## 3rd Party License Report ##
#################################
#################################
name: Run 3rd Party License Report
#
# Documentation:
# https://github.com/dhatim/python-license-check
#
#############################
# Start the job on all push #
#############################
on:
push:
branches-ignore: [master]
# Remove the line above to run when pushing to master
pull_request:
branches: [master]
###############
# Set the Job #
###############
jobs:
report:
# Name the Job
name: 3rd Parth License Report
# Set the agent to run on
runs-on: ubuntu-latest
##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v3
with:
python-version: '3.10.4'
- name: Install license report toool
run: |
pip install liccheck poetry
- name: Poetry export lock to requirements.txt
run: poetry export -f requirements.txt --output requirements.txt
- name: Poetry install
run: |
poetry config virtualenvs.create false
poetry install --no-ansi --no-interaction
- name: Run liccheck report
run: |
liccheck -r requirements.txt -R liccheck-report.txt
echo "#### LICCHECK REPORT ####"
echo ""
cat liccheck-report.txt