From ab71d1565c163667a19d328218ee930af83cae27 Mon Sep 17 00:00:00 2001 From: Pedro Cuenca Date: Wed, 5 Apr 2023 17:09:12 +0200 Subject: [PATCH] Explain how to install test dependencies As pointed out by @Birch-san: https://github.com/huggingface/diffusers/pull/2634#issuecomment-1496517210 --- CONTRIBUTING.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e9aa10a871d3..5ce48793e9c2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -394,8 +394,15 @@ passes. You should run the tests impacted by your changes like this: ```bash $ pytest tests/.py ``` + +Before you run the tests, please make sure you install the dependencies required for testing. You can do so +with this command: -You can also run the full suite with the following command, but it takes + ```bash + $ pip install -e ".[test]" + ``` + +You can run the full test suite with the following command, but it takes a beefy machine to produce a result in a decent amount of time now that Diffusers has grown a lot. Here is the command for it: