Skip unused Playwright setup in Gitea CI
This commit is contained in:
@@ -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"/);
|
||||
|
||||
Reference in New Issue
Block a user