mirror of
1
0
Fork 0

Add instructions on how to run tests in Docker

This commit is contained in:
Anish Athalye 2022-12-17 14:05:39 -05:00
parent 3965e1a390
commit 593584154d
1 changed files with 10 additions and 0 deletions

View File

@ -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]!