1
0
Fork 0
mirror of synced 2024-06-18 06:51:11 -04:00

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

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