Fix backend CI job for the host-executor runner
Some checks failed
CI / backend (push) Failing after 26s
CI / naming (push) Successful in 1s
CI / frontend (push) Successful in 7s

The Gitea runner runs jobs on the host, where actions/setup-python has
no prebuilt 3.12 for the distro. Use the system python3 in a venv.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2026-07-11 10:06:43 -04:00
parent 2efe17b743
commit 611f62326d

View File

@@ -1,8 +1,9 @@
# CI for shopdb-flask. # CI for shopdb-flask.
# #
# NOTE: this is a best-effort configuration. Gitea Actions availability on # The Gitea runner executes jobs on the host (act host executor), so
# the host is UNVERIFIED - no runner has been confirmed. Until a runner is # actions/setup-python cannot provision interpreters (no prebuilt binaries
# registered and this workflow is observed passing, treat it as config-only. # for the host distro). The backend job uses the system python3 in a venv
# instead. setup-node works because node is resolved differently.
# #
# Three jobs run on push and pull_request: # Three jobs run on push and pull_request:
# backend - pytest (tests use in-memory SQLite via TestingConfig, so no # backend - pytest (tests use in-memory SQLite via TestingConfig, so no
@@ -22,16 +23,14 @@ jobs:
steps: steps:
- name: Check out - name: Check out
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python3 --version
pip install -r requirements.txt python3 -m venv .venv
.venv/bin/pip install --upgrade pip
.venv/bin/pip install -r requirements.txt
- name: Run backend tests - name: Run backend tests
run: python -m pytest run: .venv/bin/python -m pytest
naming: naming:
runs-on: ubuntu-latest runs-on: ubuntu-latest