Files
dxdesigner-part-replacement/.gitea/workflows/ci.yml
T
阿白叔 960c66b196
Core regression / Python core and release configuration (push) Failing after 32s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python core and release configuration (pull_request) Failing after 32s
Core regression / JavaScript syntax (pull_request) Successful in 3s
fix: keep portable execution identities and core imports consistent
2026-11-06 15:16:11 +08:00

85 lines
3.2 KiB
YAML

name: Core regression
on:
push:
branches: [main, 'codex/**']
tags: ['v*']
pull_request:
workflow_dispatch:
jobs:
portable-regression:
name: Python core and release configuration
runs-on: ubuntu-latest
container:
image: node:20-bookworm
timeout-minutes: 20
steps:
- name: Checkout tested commit
run: |
git init .
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
git fetch --depth=1 origin "${GITHUB_SHA}"
git checkout --detach FETCH_HEAD
- name: Install runner Python and test dependencies
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3 python3-pytest python3-openpyxl
python3 --version
- name: Compile application and build helpers
run: python3 -m compileall -q src packaging tools
- name: Core regression (no CAD or production credentials)
run: >-
python3 -m pytest -q
tests/dsh/test_core.py
tests/dsh/test_failure_policy.py
tests/dsh/test_decision_log.py
tests/dsh/test_experience.py
tests/dsh/test_issue_broker.py
tests/packaging/test_dsh_runtime_staging.py
tests/packaging/test_release_configuration.py
tests/packaging/test_self_extracting_release.py
tests/trial_task_center/test_bom_template_contract.py
tests/trial_task_center/test_bom_import_review.py
tests/v1_1/test_cad_dialogs.py
tests/v1_1/test_lxb_blocking_recovery.py
tests/v1_1/test_nonblocking_items.py
tests/v1_1/test_component_scope.py
tests/v1_1/test_deferred_problem_pass.py
tests/v1_1/test_problem_workflow.py
tests/v1_1/test_headless_core.py
tests/v1_1/test_nonblocking_acceptance.py
tests/v1_1/test_nonblocking_resume.py
tests/v1_1/test_project_session_health.py
tests/v1_1/test_bom_actual_metadata.py
tests/v1_1/test_manual_dialog_native.py
tests/v1_1/test_workspace_execution.py
tests/v1_1/test_nonblocking_bom_values.py
tests/v1_1/test_value_readback.py
tests/dsh/test_run_journal.py
tests/dsh/test_incident_admission.py
--junitxml=build/ci-results.xml --tb=short
- name: Windows release scope
run: |
echo 'Windows PyInstaller, Qt WebEngine startup, full runtime file hashes and extracted EXE smoke are validated on the Windows build host.'
echo 'This Linux job does not claim Windows/CAD or live model acceptance.'
javascript-regression:
name: JavaScript syntax
runs-on: ubuntu-latest
container:
image: node:20-bookworm
timeout-minutes: 10
steps:
- name: Checkout tested commit
run: |
git init .
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
git fetch --depth=1 origin "${GITHUB_SHA}"
git checkout --detach FETCH_HEAD
- name: Check runtime syntax
run: |
node --check integration/dsh/start.mjs
node --check integration/dsh/task-plugin/host.mjs
node --check integration/dsh/task-plugin/client.js