From 2e62dc15bf2b7f7a08c89ff40455ce099cd27409 Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Wed, 5 Aug 2026 16:53:28 +0800 Subject: [PATCH] Skip unused Playwright setup in Gitea CI --- .gitea/workflows/backend-quality-gate.yml | 4 +--- frontend/tests/staging-backend-workflows.test.ts | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/backend-quality-gate.yml b/.gitea/workflows/backend-quality-gate.yml index 68d907cd..df4f7c7c 100644 --- a/.gitea/workflows/backend-quality-gate.yml +++ b/.gitea/workflows/backend-quality-gate.yml @@ -163,7 +163,6 @@ jobs: - name: Install dependencies env: PIP_INDEX_URL: https://mirrors.aliyun.com/pypi/simple/ - PLAYWRIGHT_DOWNLOAD_HOST: https://registry.npmmirror.com/-/binary/playwright NPM_CONFIG_REGISTRY: https://registry.npmmirror.com run: | set -euo pipefail @@ -176,8 +175,7 @@ jobs: "numpy==2.5.1" \ "pandas==2.3.3" \ "timezonefinder==8.2.5" \ - -r requirements.txt -r requirements-dev.txt playwright - python -m playwright install --with-deps chromium + -r requirements.txt -r requirements-dev.txt npm ci --prefix frontend - name: Validate backend, package, frontend, and database contracts diff --git a/frontend/tests/staging-backend-workflows.test.ts b/frontend/tests/staging-backend-workflows.test.ts index 4bf32c3a..7d79572e 100644 --- a/frontend/tests/staging-backend-workflows.test.ts +++ b/frontend/tests/staging-backend-workflows.test.ts @@ -131,7 +131,6 @@ test("Gitea quality gate validates before publishing an immutable ACR manifest", assert.equal((workflow.match(/git status --porcelain --untracked-files=all/g) ?? []).length, 2); assert.match(workflow, /python3 -m venv \.venv/); assert.match(workflow, /PIP_INDEX_URL: https:\/\/mirrors\.aliyun\.com\/pypi\/simple\//); - assert.match(workflow, /PLAYWRIGHT_DOWNLOAD_HOST: https:\/\/registry\.npmmirror\.com\/-\/binary\/playwright/); assert.match(workflow, /NPM_CONFIG_REGISTRY: https:\/\/registry\.npmmirror\.com/); for (const constraint of [ 'mcp==1.28.1', @@ -142,7 +141,7 @@ test("Gitea quality gate validates before publishing an immutable ACR manifest", ]) { assert.match(workflow, new RegExp(`"${constraint.replaceAll(".", "\\.")}"`)); } - assert.match(workflow, /python -m playwright install --with-deps chromium/); + assert.doesNotMatch(workflow, /playwright install|requirements-dev\.txt playwright/); assert.equal((workflow.match(/Acquire::https::Timeout=30 update/g) ?? []).length, 1); assert.match(workflow, /packages\+=\(docker-compose-v2\)/); assert.match(workflow, /python3 -m venv "\$venv_probe\/venv"/);