ci: run Python checks in Bookworm container
ci / python (push) Failing after 15m3s

This commit is contained in:
2026-09-23 23:09:59 +08:00
parent fc223263bd
commit f0e910cd88
+17 -14
View File
@@ -9,31 +9,34 @@ on:
jobs: jobs:
python: python:
runs-on: gitea-cicd-server-for-CODEX runs-on: gitea-cicd-server-for-CODEX
container: node:22-bookworm
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
# The runner job image only has Debian's Python 3.9 without ensurepip, # The runner label defaults to node:16-bullseye, whose Python 3.9 is too
# while the project requires Python 3.10 or newer. Use the Actions tool # old and whose Debian repositories are retired. A Bookworm job image
# cache rather than depending on the retired Debian 11 package mirrors. # keeps Node available for JavaScript actions and provides Python 3.11.
- uses: actions/setup-python@v5 - name: Set up Python
with: run: |
python-version: "3.12" set -eu
apt-get update -qq
- name: Check Python apt-get install -y -qq python3-venv
run: python --version python3 --version
python3 -m venv .venv
.venv/bin/python -m pip install --quiet --upgrade pip
- name: Install - name: Install
run: python -m pip install --quiet -e ".[dev]" run: .venv/bin/python -m pip install --quiet -e ".[dev]"
- name: Lint - name: Lint
run: python -m ruff check . run: .venv/bin/python -m ruff check .
- name: Test - name: Test
run: python -m pytest -q run: .venv/bin/python -m pytest -q
- name: Check the CLI entry point - name: Check the CLI entry point
run: | run: |
set -eu set -eu
lean-bench --help > /dev/null .venv/bin/lean-bench --help > /dev/null
lean-bench doctor --skip-llm --env /dev/null .venv/bin/lean-bench doctor --skip-llm --env /dev/null