ci: use python+node image so actions/checkout can run in the job container
All checks were successful
CI / backend-tests (pull_request) Successful in 52s
CI / frontend-build (pull_request) Successful in 29s

This commit is contained in:
pedro-bento 2026-10-04 19:50:29 +01:00
parent 6721d853ef
commit 0d961ba019

View file

@ -10,12 +10,11 @@ jobs:
runs-on: ubuntu-latest
# The Forgejo runner cannot provision Python 3.11 via actions/setup-python
# ("Version 3.11 was not found in the local cache"), so the job runs inside
# a python:3.11-slim container instead.
container: python:3.11-slim
# a container that already has Python 3.11. It must also ship Node and git:
# the runner executes JS actions (actions/checkout) by invoking `node`
# inside the job container, so a python-only image fails at checkout.
container: nikolaik/python-nodejs:python3.11-nodejs20
steps:
# The slim image ships no git; checkout needs it.
- name: Install git
run: apt-get update && apt-get install -y --no-install-recommends git
- uses: actions/checkout@v4
# Everything the collected tests import at module level, WITHOUT the
# heavy ML stack (torch/ultralytics/mediapipe/faster-whisper) — the