Commit 960aa75f authored by Federico Falconieri's avatar Federico Falconieri
Browse files

Merge branch 'hoverht-master-patch-07107' into 'master'

feat: allow optional packages

Closes #101

See merge request ci/templates!102
parents 8c139ac8 f8eb3525
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",
]