Skip to content

Commit

Permalink
tests runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Nov 13, 2023
1 parent aa0e4f6 commit 30bf8eb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.11-bullseye

WORKDIR /app

RUN pip install pytest

COPY ./requirements.txt /app
RUN pip install --upgrade pip --no-cache-dir -r requirements.txt

COPY ./registry /app/registry
COPY ./tests /app/tests

CMD pytest
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3.8'

services:

postgres:
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: password

tarantool:
image: tarantool/tarantool

tests:
build: .
depends_on:
- postgres
- tarantool
volumes:
- './registry:/app/registry'
- './tests:/app/tests'
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
anyio
asyncpg
asynctnt
pytest
pytest-asyncio

0 comments on commit 30bf8eb

Please sign in to comment.