run tests with oldest-supported versions

to catch any cases where we make assumptions about more recent versions than we claim to support
This commit is contained in:
Min RK
2020-11-17 12:15:32 +01:00
parent d581cf54cb
commit 0c43feee1b
2 changed files with 11 additions and 0 deletions

View File

@@ -85,6 +85,8 @@ jobs:
# GitHub UI when the workflow run, we avoid using true/false as
# values by instead duplicating the name to signal true.
include:
- python: "3.6"
oldest_dependencies: oldest_dependencies
- python: "3.6"
subdomain: subdomain
- python: "3.7"
@@ -143,6 +145,14 @@ jobs:
pip install --upgrade pip
pip install --upgrade . -r dev-requirements.txt
if [ "${{ matrix.oldest_dependencies }}" != "" ]; then
# take any dependencies in requirements.txt such as tornado>=5.0
# and transform them to tornado==5.0 so we can run tests with
# the earliest-supported versions
cat requirements.txt | grep '>=' | sed -e 's@>=@==@g' > oldest-requirements.txt
pip install -r oldest-requirements.txt
fi
if [ "${{ matrix.main_dependencies }}" != "" ]; then
pip install git+https://github.com/ipython/traitlets#egg=traitlets --force
fi

1
.gitignore vendored
View File

@@ -28,3 +28,4 @@ htmlcov
.pytest_cache
pip-wheel-metadata
docs/source/reference/metrics.rst
oldest-requirements.txt