Commit 63a1543d authored by Federico Falconieri's avatar Federico Falconieri
Browse files

Merge branch 'poetry-outdated' into 'master'

feat: poetry outdated

See merge request ci/templates!48
parents 1a97db1c 6e77607f
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