From f35d3f8cb876b883da83793b9a0652afa80ae885 Mon Sep 17 00:00:00 2001 From: shmyga Date: Tue, 29 Sep 2026 22:42:41 +0300 Subject: [PATCH] build(docker): fix playwright version --- .gitea/workflows/{build.yaml => release.yaml} | 7 ++++--- .gitea/workflows/test.yaml | 2 +- Dockerfile | 2 +- pyproject.toml | 16 ++++++++-------- 4 files changed, 14 insertions(+), 13 deletions(-) rename .gitea/workflows/{build.yaml => release.yaml} (84%) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/release.yaml similarity index 84% rename from .gitea/workflows/build.yaml rename to .gitea/workflows/release.yaml index 3a0216f..13c6f21 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/release.yaml @@ -1,16 +1,17 @@ -name: build +name: release on: push: tags: ["*"] jobs: - build: - #needs: test + release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: ./.gitea/actions/setup + - run: pm lint -vv + - run: pm test -vv - run: pm build:docker -vv - uses: docker/login-action@v4 with: diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 084626e..ec82fd1 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -8,5 +8,5 @@ jobs: steps: - uses: actions/checkout@v7 - uses: ./.gitea/actions/setup - #- run: pm lint -vv + - run: pm lint -vv - run: pm test -vv diff --git a/Dockerfile b/Dockerfile index 20b1324..269acd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,7 @@ FROM python:3.14-slim ENV PLAYWRIGHT_BROWSERS_PATH="/opt/playwright-browsers" RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ - pip install playwright && \ + pip install playwright==1.62 && \ playwright install --with-deps chromium ENV PATH="/app/.venv/bin:$PATH" diff --git a/pyproject.toml b/pyproject.toml index 8a44b6e..5a294b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,13 +4,13 @@ description = "" version = "0.10.3" readme = "README.md" authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }] -requires-python = '>=3.14,<4.0' +requires-python = ">=3.14,<4.0" dependencies = [ - 'aiohttp (>=3.14,<4.0)', - 'beautifulsoup4 (>=4.15,<5.0)', - 'dateparser (>=1.4,<2.0)', - 'pydantic (>=2.13,<3.0)', - 'aiocache[redis] (>=0.12,<0.13)', + "aiohttp (>=3.14,<4.0)", + "beautifulsoup4 (>=4.15,<5.0)", + "dateparser (>=1.4,<2.0)", + "pydantic (>=2.13,<3.0)", + "aiocache[redis] (>=0.12,<0.13)", "playwright (>=1.62.0,<2.0.0)", ] @@ -30,10 +30,10 @@ gallery = "gallery.main:run" [tool.poetry] packages = [{ include = "gallery" }] -requires-poetry = '>=2.0.0,<3.0.0' +requires-poetry = ">=2.0.0,<3.0.0" [build-system] -requires = ['poetry-core (>=2.0.0,<3.0.0)'] +requires = ["poetry-core (>=2.0.0,<3.0.0)"] build-backend = "poetry.core.masonry.api" [tool.black]