From 6f6e192c0d68165f18059c1d2f88b00cb449c1a9 Mon Sep 17 00:00:00 2001 From: Matteo Bertucci Date: Fri, 15 Oct 2021 09:19:07 +0000 Subject: Actions: do not check licenses of dev packages --- .github/workflows/lint-test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 2f42f1895..f2c9dfb6c 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -81,12 +81,14 @@ jobs: pip install poetry poetry install - # Check all the dependencies are compatible with the MIT license. + # Check all of our non-dev dependencies are compatible with the MIT license. # If you added a new dependencies that is being rejected, # please make sure it is compatible with the license for this project, # and add it to the ALLOWED_LICENSE variable - name: Check Dependencies License - run: pip-licenses --allow-only="$ALLOWED_LICENSE" + run: | + pip-licenses --allow-only="$ALLOWED_LICENSE" \ + --package $(poetry export -f requirements.txt --without-hashes | sed "s/==.*//g" | tr "\n" " ") # This step caches our pre-commit environment. To make sure we # do create a new environment when our pre-commit setup changes, -- cgit v1.2.3