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

feat: poetry outdated

parent 7586ec37
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
---
# Checks for dependencies that are not up to date.
# We always allow failure, because it shouldn't be
# a blocking problem. Sometimes you just want the
# good old stuff.

python:poetry:outdated:
  stage: test
  image: registry.gitlab.com/notno/python-tests
  script:
    - pip show poetry
    - poetry install
    - |
      if poetry show --ansi --outdated | \grep -P ' \e\[31m' --color=never; then
        echo "[!] You have outdated packages. Run 'poetry update' in your repository."
        exit 1
      fi
  allow_failure: true