Skip to content

Commit 1ff6949

Browse files
committed
Dockerized testing
1 parent ce8207a commit 1ff6949

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docker-compose.test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
web:
3+
user: root # Run as root for tests to allow global package installation
4+
environment:
5+
- PYTHONPATH=/usr/local/lib/python3.11/site-packages
6+
command: bash -c "pip install faker pytest-asyncio pytest-mock && pytest tests/ -v"
7+
volumes:
8+
- ./tests:/code/tests

0 commit comments

Comments
 (0)