From 70233ec27d612a2b9c6984bb3a731afc44bb5e9b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 24 Apr 2025 17:14:37 +0400 Subject: [PATCH] Update instructions to run ML tests with Elasticsearch (#781) (#786) * Update instructions to run ML tests with Elasticsearch * Update CONTRIBUTING.md Co-authored-by: David Kyle --------- Co-authored-by: David Kyle (cherry picked from commit 00dc55b3bdc843c2fb1f6faf3f17da9bcb4ab642) Co-authored-by: Quentin Pradet --- CONTRIBUTING.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d3ddccc..d7486fb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -78,9 +78,15 @@ Once your changes and tests are ready to submit for review: # Run Auto-format, lint, mypy type checker for your changes $ nox -s format - # Run the test suite - $ pytest --doctest-modules eland/ tests/ - $ pytest --nbval tests/notebook/ + # Launch Elasticsearch with a trial licence and ML enabled + $ docker run --name elasticsearch -p 9200:9200 -e "discovery.type=single-node" -e "xpack.security.enabled=false" -e "xpack.license.self_generated.type=trial" docker.elastic.co/elasticsearch/elasticsearch:9.0.0 + + # See all test suites + $ nox -l + # Run a specific test suite + $ nox -rs "test-3.12(pandas_version='2.2.3')" + # Run a specific test + $ nox -rs "test-3.12(pandas_version='2.2.3')" -- -k test_learning_to_rank ```