Commit f8eb3525 authored by Ruben ten Hove's avatar Ruben ten Hove Committed by Federico Falconieri
Browse files

feat: adds support for optional packages in pylic job

parent 3eb76a06
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -2,12 +2,20 @@
# Check the package repo on how to configure this job
# https://github.com/sandrochuber/pylic

# Be warned that this only checks installed packages.
# This job does not install optional dependencies and there
# is currently no reliable method to detect these.
# Add packages to the EXTRA_PACKAGES variable to install these.

python:pylic:
  stage: test
  image: python:slim
  before_script:
    - pip install .
  variables:
    EXTRA_PACKAGES: ""  # Optional packages
  script:
    - pip install . ${EXTRA_PACKAGES}
    - pip install pylic
    - echo "[*] The following packages, with their respective version, will be checked:"
    - pip freeze --all
    - pylic
  needs: []
+3 −1
Original line number Diff line number Diff line
@@ -29,4 +29,6 @@ safe_licenses = [
    "Apache Software License",
    "MIT License"
]
unsafe_packages = []
unsafe_packages = [
    "mypackage",
]