Skip to content

Commit 1cdf81c

Browse files
committed
ci: add dependency license analysis step
1 parent 02554f4 commit 1cdf81c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ jobs:
3232
- name: Run pre-commit
3333
run: uv run --no-project --with-requirements requirements-dev.txt pre-commit run --all-files
3434

35+
- name: Analyze dependency licenses
36+
run: |
37+
uv run --no-project --with-requirements requirements-dev.txt --with pip-licenses \
38+
pip-licenses --format=markdown --with-authors --with-urls \
39+
--output-file licenses-report.md
40+
41+
- name: Upload license report
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: licenses-report-${{ matrix.os }}-py${{ matrix.python-version }}
45+
path: licenses-report.md
46+
3547
- name: Run unit tests with coverage
3648
run: |
3749
uv run --no-project --with-requirements requirements-dev.txt coverage run manage.py test

0 commit comments

Comments
 (0)