From 593584154d38a34a100d58ec3d68041cb2b16e67 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Sat, 17 Dec 2022 14:05:39 -0500 Subject: [PATCH] Add instructions on how to run tests in Docker --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 53c18ec..f4a3840 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -75,6 +75,16 @@ $ & .venv\Scripts\Activate.ps1 (.venv) $ tox ``` +If you prefer to run the tests in an isolated container using Docker, you can +do so with the following: + +``` +docker run -it --rm -v "${PWD}:/dotbot" -w /dotbot python:3.10-alpine /bin/sh +``` + +After spawning the container, follow the same instructions as above (create a +virtualenv, ..., run the tests). + --- If you have any questions about anything, feel free to [ask][email]!