ci: load deployment smoke module correctly
Some checks failed
Quality gates / quality (pull_request) Failing after 3m9s

This commit is contained in:
Timmy 2026-08-23 00:00:00 +00:00
parent f7a018de7e
commit 643f774c78
2 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,6 @@ jobs:
npm run check:syntax npm run check:syntax
node --check tests/staging.acceptance.mjs node --check tests/staging.acceptance.mjs
- name: Image runtime pin and re-encode smoke - name: Image runtime pin and re-encode smoke
run: python3 -c "import importlib.util,json,pathlib; s=importlib.util.spec_from_file_location('d','scripts/deploy_staging.py'); m=importlib.util.module_from_spec(s); s.loader.exec_module(m); print(json.dumps(m.verify_image_runtime(pathlib.Path('.'))))" run: python3 -c "import importlib.util,json,pathlib,sys; s=importlib.util.spec_from_file_location('d','scripts/deploy_staging.py'); m=importlib.util.module_from_spec(s); sys.modules[s.name]=m; s.loader.exec_module(m); print(json.dumps(m.verify_image_runtime(pathlib.Path('.'))))"
- name: Diff hygiene - name: Diff hygiene
run: npm run check:diff run: npm run check:diff

View File

@ -20,6 +20,7 @@ test('Gitea CI gates pull requests and main with the reproducible quality suite'
assert.match(workflow, /uses: actions\/setup-python@v5/); assert.match(workflow, /uses: actions\/setup-python@v5/);
assert.match(workflow, /python-version: ['"]3\.11['"]/); assert.match(workflow, /python-version: ['"]3\.11['"]/);
assert.match(workflow, /TIMMY_PYTHON=.*sys\.executable/); assert.match(workflow, /TIMMY_PYTHON=.*sys\.executable/);
assert.match(workflow, /sys\.modules\[s\.name\]=m/);
assert.match(workflow, /npm test/); assert.match(workflow, /npm test/);
assert.match(workflow, /npm run test:ui/); assert.match(workflow, /npm run test:ui/);
assert.match(workflow, /npm run test:photo/); assert.match(workflow, /npm run test:photo/);