File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -204,32 +204,6 @@ jobs:
204204 run : |
205205 make check-licenses
206206
207- - name : Check licenses (Python)
208- if : steps.check_poetry.outputs.uses_poetry == 'true'
209- run : |
210- #!/bin/bash
211- set -euo pipefail
212-
213- # Install pip-licenses if not already installed
214- if ! poetry run pip show pip-licenses > /dev/null 2>&1; then
215- echo "pip-licenses is not detected. Installing..."
216- poetry run pip install pip-licenses
217- fi
218-
219- # known packages with dual licensing
220- IGNORE_PACKAGES='"PyGithub" "chardet" "text-unidecode"'
221- LICENSES=$(poetry run pip-licenses --ignore-packages "${IGNORE_PACKAGES}")
222- INCOMPATIBLE_LIBS=$(echo "$LICENSES" | grep 'GPL' || true)
223-
224- if [[ -z $INCOMPATIBLE_LIBS ]]; then
225- echo "Checked licenses are OK"
226- exit 0
227- else
228- echo "The following libraries were found which are not compatible with this project's license:"
229- echo "$INCOMPATIBLE_LIBS"
230- exit 1
231- fi
232-
233207 - name : Run code lint
234208 run : make lint
235209
You can’t perform that action at this time.
0 commit comments