From 00dc55b3bdc843c2fb1f6faf3f17da9bcb4ab642 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 24 Apr 2025 15:42:00 +0400 Subject: [PATCH] Update instructions to run ML tests with Elasticsearch (#781) * Update instructions to run ML tests with Elasticsearch * Update CONTRIBUTING.md Co-authored-by: David Kyle --------- Co-authored-by: David Kyle --- CONTRIBUTING.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 12c8fc3..a6627fd 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 ```