mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
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:
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -85,6 +85,8 @@ jobs:
|
|||||||
# GitHub UI when the workflow run, we avoid using true/false as
|
# GitHub UI when the workflow run, we avoid using true/false as
|
||||||
# values by instead duplicating the name to signal true.
|
# values by instead duplicating the name to signal true.
|
||||||
include:
|
include:
|
||||||
|
- python: "3.6"
|
||||||
|
oldest_dependencies: oldest_dependencies
|
||||||
- python: "3.6"
|
- python: "3.6"
|
||||||
subdomain: subdomain
|
subdomain: subdomain
|
||||||
- python: "3.7"
|
- python: "3.7"
|
||||||
@@ -143,6 +145,14 @@ jobs:
|
|||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install --upgrade . -r dev-requirements.txt
|
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
|
if [ "${{ matrix.main_dependencies }}" != "" ]; then
|
||||||
pip install git+https://github.com/ipython/traitlets#egg=traitlets --force
|
pip install git+https://github.com/ipython/traitlets#egg=traitlets --force
|
||||||
fi
|
fi
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -28,3 +28,4 @@ htmlcov
|
|||||||
.pytest_cache
|
.pytest_cache
|
||||||
pip-wheel-metadata
|
pip-wheel-metadata
|
||||||
docs/source/reference/metrics.rst
|
docs/source/reference/metrics.rst
|
||||||
|
oldest-requirements.txt
|
||||||
|
Reference in New Issue
Block a user