Skip unused Playwright setup in Gitea CI
Staging Backend Quality Gate / validate (pull_request) Failing after 16m38s
Staging Backend Quality Gate / publish (pull_request) Has been skipped

This commit is contained in:
Jesse_Chen
2026-08-05 16:53:28 +08:00
parent 0127321c06
commit 2e62dc15bf
2 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -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
@@ -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"/);