diff --git a/ci/test_python.sh b/ci/test_python.sh index 3239beaf1..386d0b063 100755 --- a/ci/test_python.sh +++ b/ci/test_python.sh @@ -12,7 +12,7 @@ rapids-logger "Create test conda environment" rapids-dependency-file-generator \ --output conda \ --file-key test_python \ - --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml + --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};dependencies=${RAPIDS_DEPENDENCIES}" | tee env.yaml rapids-mamba-retry env create --yes -f env.yaml -n test set +u diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 8ba03f3a2..d06c4eed0 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -7,7 +7,20 @@ RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" WHEELHOUSE="${PWD}/dist/" RAPIDS_PY_WHEEL_NAME="rmm_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 python "${WHEELHOUSE}" +# Constraint to minimum dependency versions if job is set up as "oldest" +echo "" > ./constraints.txt +if [[ $RAPIDS_DEPENDENCIES == "oldest" ]]; then + rapids-dependency-file-generator \ + --output requirements \ + --file-key test_python \ + --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};dependencies=${RAPIDS_DEPENDENCIES}" \ + | tee ./constraints.txt +fi + # echo to expand wildcard before adding '[extra]' requires for pip -python -m pip install -v "$(echo "${WHEELHOUSE}"/rmm_${RAPIDS_PY_CUDA_SUFFIX}*.whl)[test]" +python -m pip install \ + -v \ + --constraint ./constraints.txt \ + "$(echo "${WHEELHOUSE}"/rmm_${RAPIDS_PY_CUDA_SUFFIX}*.whl)[test]" python -m pytest ./python/rmm/rmm/tests diff --git a/dependencies.yaml b/dependencies.yaml index ef2de69ed..0196a6ee0 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -308,3 +308,13 @@ dependencies: - cuda-nvcc - matrix: packages: + - output_types: [conda, requirements] + # Define additional constraints for testing with oldest dependencies. + matrices: + - matrix: + dependencies: "oldest" + packages: + - numba==0.57.* + - numpy==1.23.* + - matrix: + packages: