Add framework and apiserver
[pti/o2.git] / README.md
1 ## Building containers\r
2 \r
3 \r
4 ```sh\r
5 docker-compose build\r
6 ```\r
7 \r
8 \r
9 ## Creating a local virtualenv (optional)\r
10 \r
11 ```sh\r
12 python3.8 -m venv .venv && source .venv/bin/activate\r
13 pip install -r requirements.txt\r
14 pip install -e src/\r
15 ```\r
16 \r
17 ## Running the tests\r
18 \r
19 ```sh\r
20 docker-compose up -d\r
21 docker-compose run --rm --no-deps --entrypoint=pytest api /tests/unit /tests/integration\r
22 pytest tests/unit\r
23 pytest tests/integration\r
24 pytest tests/e2e\r
25 ```\r
26 \r
27 ## Tear down containers\r
28 \r
29 ```sh\r
30 docker-compose down --remove-orphans\r
31 ```\r