ci: install Python in cached runner image
Core regression / Python core and release configuration (push) Successful in 15s
Core regression / JavaScript syntax (push) Successful in 3s

This commit is contained in:
阿白叔 committed 2026-11-02 15:27:47 +08:00
1 parent 2b2fdad56f
commit c1ad438591
1 file changed
+8 -7
+8 -7
View File
@@ -12,7 +12,7 @@ jobs:
name: Python core and release configuration
runs-on: ubuntu-latest
container:
image: python:3.12-bookworm
image: node:20-bookworm
timeout-minutes: 20
steps:
- name: Checkout tested commit
@@ -21,15 +21,16 @@ jobs:
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
git fetch --depth=1 origin "${GITHUB_SHA}"
git checkout --detach FETCH_HEAD
- name: Runner Python
run: python --version
- name: Install portable test dependencies
run: python -m pip install 'pytest>=8,<9'
- 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 --version
- name: Compile application and build helpers
run: python -m compileall -q src packaging tools
run: python3 -m compileall -q src packaging tools
- name: Core regression (no CAD or production credentials)
run: >-
python -m pytest -q
python3 -m pytest -q
tests/dsh/test_core.py
tests/dsh/test_failure_policy.py
tests/dsh/test_decision_log.py