Skip to content

Commit

Permalink
Enable hypothesis testing for nightly test runs. (#5244)
Browse files Browse the repository at this point in the history
Partially reverts #5221.

Authors:
  - Carl Simon Adorf (https://github.com/csadorf)

Approvers:
  - AJ Schmidt (https://github.com/ajschmidt8)
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: #5244
  • Loading branch information
csadorf authored Feb 21, 2023
1 parent bdd0394 commit 0eee2c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
conda-python-tests-singlegpu:
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected]
env:
RAPIDS_CUML_RUN_HYPOTHESIS=1
with:
build_type: nightly
branch: ${{ inputs.branch }}
Expand Down
5 changes: 5 additions & 0 deletions ci/test_python_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ rapids-mamba-retry install \

rapids-logger "Check GPU usage"
nvidia-smi

# Enable hypothesis testing for nightly test runs.
if [ "${RAPIDS_BUILD_TYPE}" == "nightly" ]; then
export HYPOTHESIS_ENABLED="true"
fi
2 changes: 1 addition & 1 deletion python/cuml/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
pytest_plugins = "cuml.testing.plugins.quick_run_plugin"

CI = os.environ.get("CI") in ("true", "1")
HYPOTHESIS_ENABLED = os.environ.get("RAPIDS_CUML_RUN_HYPOTHESIS") in (
HYPOTHESIS_ENABLED = os.environ.get("HYPOTHESIS_ENABLED") in (
"true",
"1",
)
Expand Down

0 comments on commit 0eee2c6

Please sign in to comment.