diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d065686..054b72c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,6 +11,12 @@ on: jobs: test: + + strategy: + fail-fast: false + matrix: + version: ['3.8', '3.9', '3.10', '3.11'] + runs-on: ubuntu-20.04 env: COMPOSE_FILE: .ci/docker-compose.yml @@ -20,7 +26,7 @@ jobs: uses: actions/checkout@v3 - name: Build the images - run: DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f base.yml -f .ci/docker-compose.yml build + run: DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f base.yml -f .ci/docker-compose.yml build --build-arg PYTHON_VERSION=${{ matrix.version }} - name: Run unit tests run: make utest diff --git a/Dockerfile b/Dockerfile index 1fd87fc..962f08b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM python:3.8 +ARG PYTHON_VERSION=3.8 +FROM python:$PYTHON_VERSION EXPOSE 8000 diff --git a/requirements.txt b/requirements.txt index ad812ce..10c322a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,8 +4,8 @@ fastapi==0.86.0 mmh3==3.0.0 pika==1.2.0 psycopg2-binary==2.9.5 -pydantic==1.8.2 +pydantic==1.10.4 python-dotenv==0.19.0 requests==2.27.1 sqlalchemy==1.4.31 -uvicorn==0.17.1 +uvicorn==0.17.1 \ No newline at end of file