From 3364a50c680c0f52b3127cf1c0c94448fc63561f Mon Sep 17 00:00:00 2001 From: rosemariejebbjtxbfp Date: Wed, 24 Jun 2026 06:02:28 +0000 Subject: [PATCH] ci: run Python job in python3.12+node container setup-python@v5 can't fetch CPython 3.12 on the self-hosted Gitea runner (it queries the Gitea API for actions/python-versions, which 404s), so the job silently fell back to the image's system Python 3.10 + pip 22.0.2. That old pip lacks PEP 660 editable support, so 'pip install -e' failed with 'build backend is missing the build_editable hook', and 3.10 is below the project's requires-python>=3.11 (code uses datetime.UTC). Run the job inside nikolaik/python-nodejs:python3.12-nodejs20 which bundles Python 3.12, Node 20 (for actions/checkout) and modern pip, removing the GitHub download dependency entirely. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e166a85..6da6892 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,14 +44,13 @@ jobs: python: name: Python (ingestion) runs-on: ubuntu-latest + container: + image: nikolaik/python-nodejs:python3.12-nodejs20 defaults: run: working-directory: ingestion steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" - name: Install run: pip install -e ".[dev]" - name: Ruff lint