From 9fbfee24240820f8ba386bbecf0e670002530fd8 Mon Sep 17 00:00:00 2001 From: Simon Mo Date: Tue, 28 Jul 2020 19:54:48 -0700 Subject: [PATCH] Pin pytest version (#9767) --- ci/asan_tests/ray-project/requirements.txt | 2 +- ci/asan_tests/run_asan_tests.sh | 2 +- ci/travis/install-dependencies.sh | 2 +- ci/travis/test-wheels.sh | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/asan_tests/ray-project/requirements.txt b/ci/asan_tests/ray-project/requirements.txt index 7fc33e88e..5de89c89c 100644 --- a/ci/asan_tests/ray-project/requirements.txt +++ b/ci/asan_tests/ray-project/requirements.txt @@ -19,7 +19,7 @@ Pillow prometheus_client py-spy pygments -pytest +pytest==5.4.3 pytest-asyncio pytest-rerunfailures pytest-sugar diff --git a/ci/asan_tests/run_asan_tests.sh b/ci/asan_tests/run_asan_tests.sh index 8cb8a25a8..0ab279d21 100755 --- a/ci/asan_tests/run_asan_tests.sh +++ b/ci/asan_tests/run_asan_tests.sh @@ -11,7 +11,7 @@ asan_install() { asan_setup() { echo "Setting up the environment" pip install -r ray-project/requirements.txt - pip install -U pytest + pip install -U pytest==5.4.3 echo "Installing cython example" (cd "${ROOT_DIR}"/../doc/examples/cython && python setup.py install --user) diff --git a/ci/travis/install-dependencies.sh b/ci/travis/install-dependencies.sh index bf6f16829..dd0995fd3 100755 --- a/ci/travis/install-dependencies.sh +++ b/ci/travis/install-dependencies.sh @@ -237,7 +237,7 @@ install_dependencies() { esac pip_packages+=(scipy tensorflow=="${tf_version}" cython==0.29.0 gym \ opencv-python-headless pyyaml pandas==1.0.5 requests feather-format lxml openpyxl xlrd \ - py-spy pytest pytest-timeout networkx tabulate aiohttp uvicorn dataclasses pygments werkzeug \ + py-spy pytest==5.4.3 pytest-timeout networkx tabulate aiohttp uvicorn dataclasses pygments werkzeug \ kubernetes flask grpcio pytest-sugar pytest-rerunfailures pytest-asyncio scikit-learn==0.22.2 numba \ Pillow prometheus_client boto3 pettingzoo mypy) if [ "${OSTYPE}" != msys ]; then diff --git a/ci/travis/test-wheels.sh b/ci/travis/test-wheels.sh index 24fc848d7..7fd671332 100755 --- a/ci/travis/test-wheels.sh +++ b/ci/travis/test-wheels.sh @@ -71,7 +71,7 @@ if [[ "$platform" == "linux" ]]; then "$PYTHON_EXE" -u -c "import ray; print(ray.__commit__)" | grep "$TRAVIS_COMMIT" || (echo "ray.__commit__ not set properly!" && exit 1) # Install the dependencies to run the tests. - "$PIP_CMD" install -q aiohttp google grpcio pytest requests + "$PIP_CMD" install -q aiohttp google grpcio pytest==5.4.3 requests # Run a simple test script to make sure that the wheel works. for SCRIPT in "${TEST_SCRIPTS[@]}"; do @@ -112,7 +112,7 @@ elif [[ "$platform" == "macosx" ]]; then "$PIP_CMD" install -q "$PYTHON_WHEEL" # Install the dependencies to run the tests. - "$PIP_CMD" install -q aiohttp google grpcio pytest requests + "$PIP_CMD" install -q aiohttp google grpcio pytest==5.4.3 requests # Run a simple test script to make sure that the wheel works. for SCRIPT in "${TEST_SCRIPTS[@]}"; do