fix: CI test step fails due to missing venv in python:3.12-slim #12
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/basketball-api#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lineage
Standalone fix -- no plan ancestry. CI pipeline is broken and blocking all PRs.
Repo
forgejo_admin/basketball-apiUser Story
As a developer
I want the CI test step to install dependencies correctly
So that tests actually run and PRs get validated
Context
The Woodpecker CI test step runs
pip install .[dev]in a barepython:3.12-slimcontainer. PEP 668 marks system Python as externally managed, so pip refuses to install without--break-system-packages. The package never installs and tests fail withModuleNotFoundError: No module named 'basketball_api'. The fix is to create a venv in the test step so pip installs cleanly.File Targets
Files the agent should modify:
.woodpecker.yaml-- change test step commands to use a venvFiles the agent should NOT touch:
.woodpecker.yamlbuild-and-push step -- only the test step needs fixingAcceptance Criteria
--break-system-packagesTest Expectations
Constraints
python -m venv /tmp/venvand prefix all commands with/tmp/venv/bin/--break-system-packages-- venv is the proper fixChecklist
Related
project-westside-basketball-- project this affects