diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a27b9da..58652d0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,7 +31,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - name: Cache Docker images. - uses: ScribeMD/docker-cache@0.3.7 + uses: ScribeMD/docker-cache@0.5.0 with: key: docker-${{ hashFiles('docker-compose.ci.yml') }} - run: just test diff --git a/backend/app/pyproject.toml b/backend/app/pyproject.toml index 9a294bb..135b157 100644 --- a/backend/app/pyproject.toml +++ b/backend/app/pyproject.toml @@ -6,9 +6,9 @@ authors = ["PuQing "] maintainers = [] [tool.poetry.dependencies] -python = ">=3.8,<3.11" -fastapi = "^0.109.1" -uvicorn = { version = "^0.27.0", extras = ["standard"] } +python = ">=3.12,<3.13" +fastapi = "^0.111.0" +uvicorn = { version = "^0.29.0", extras = ["standard"] } gunicorn = "^21.2.0" pydantic = { extras = ["email"], version = "^2.5.3" } pydantic-settings = "^2" @@ -16,7 +16,7 @@ yarl = "^1.9.2" ujson = "^5.8.0" httptools = "^0.6.0" loguru = "^0.7.0" -sqlmodel = "^0.0.16" +sqlmodel = "^0.0.18" python-jose = { extras = ["cryptography"], version = "^3.3.0" } passlib = "^1.7.4" emails = "^0.6" @@ -31,7 +31,7 @@ psycopg = { extras = ["binary"], version = "^3.1.13" } scrapy = "^2.11.0" feedparser = "^6.0.11" gensim = "^4.3.2" -rectools = "^0.4.2" +rectools = "^0.5.0" mjml-python = "^1.3.0" diff --git a/backend/backend.dockerfile b/backend/backend.dockerfile index 3a81b6c..94849bf 100644 --- a/backend/backend.dockerfile +++ b/backend/backend.dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10 +FROM python:3.12 WORKDIR /app/ diff --git a/backend/celeryworker.dockerfile b/backend/celeryworker.dockerfile index 0aa7e67..81bda31 100644 --- a/backend/celeryworker.dockerfile +++ b/backend/celeryworker.dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10 +FROM python:3.12 WORKDIR /app/