Skip to content

Commit

Permalink
Fixed test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Archana-Shinde1 committed Oct 16, 2023
1 parent 64cacf9 commit 7389145
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tests/open-ce-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ tests:
command: |
conda install -y git
git clone --recursive -b v$(python -c "import xgboost; print(xgboost.__version__)") https://github.com/dmlc/xgboost
conda install -y pytest mock hypothesis matplotlib pandas urllib3 psutil distributed scikit-learn=1.1.*
conda install -y pytest mock hypothesis matplotlib pandas=2.0 urllib3 psutil distributed scikit-learn=1.1.*
PYTHON_VER=$(python -c 'import platform; print(platform.python_version())')
if [[ ! "$PYTHON_VER" =~ "3.9" ]]
then
Expand All @@ -14,7 +14,19 @@ tests:
cd xgboost
PYTHON_VER=$(python -c 'import platform; print(platform.python_version())')
SKIPPED_TESTS="not test_cli and not test_plotting and not test_sklearn_plotting"
pytest -v -k "${SKIPPED_TESTS}" tests/python
TESTSUITES_TO_RUN=(
tests/python/test_basic.py
tests/python/test_callback.py
tests/python/test_demos.py
tests/python/test_openmp.py
tests/python/test_predict.py
tests/python/test_tree_regularization.py
)
for test_suite in "${TESTSUITES_TO_RUN[@]}"
do
TEST_SUITES+="$test_suite "
done
pytest -v -k "${SKIPPED_TESTS}" ${TEST_SUITES}
- name: Clean tests
command: rm -rf xgboost

0 comments on commit 7389145

Please sign in to comment.