From b56f0e592ae431f14563da1582109ea2f1291563 Mon Sep 17 00:00:00 2001 From: Jose Tomas Robles Hahn Date: Thu, 9 Jul 2020 23:08:57 -0400 Subject: [PATCH] config: Verify Python dependency compatibility in CI We need to use `pip check` because it returns a non-zero exit status when there are dependency version conflicts. `pip install` just prints a warning, which does not cause a CI failure. See also: https://github.com/pypa/pip/issues/6200 --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index cde09f5c..a056970d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,6 +34,12 @@ jobs: pip install --upgrade setuptools wheel pip install -r requirements/test.txt + - run: + name: Check Dependencies + command: | + . venv/bin/activate + pip check + - run: name: run tests command: | @@ -73,6 +79,12 @@ jobs: pip install --upgrade setuptools wheel pip install -r requirements/release.txt + - run: + name: Check Dependencies + command: | + . venv/bin/activate + pip check + - run: name: make dist command: |