fix: Use venv in CI test step to avoid --break-system-packages issue #13

Merged
forgejo_admin merged 1 commit from 12-fix-ci-test-step-fails-due-to-missing-ve into main 2026-03-09 18:29:26 +00:00
Contributor

Summary

  • The Woodpecker CI test step fails because pip install .[dev] in a bare python:3.12-slim container is blocked by PEP 668 (externally managed environment)
  • This PR adds a venv so pip installs cleanly without needing --break-system-packages

Changes

  • .woodpecker.yaml: Changed the test step to create a venv at /tmp/venv and run all commands (pip install, ruff check, ruff format, pytest) through the venv's Python/pip. The build-and-push step is unchanged.

Test Plan

  • Woodpecker pipeline passes on this PR (push/pull_request trigger)
  • Verify the build-and-push step still works on merge to main
  • No regressions in CI behavior

Review Checklist

  • Passed automated review-fix loop
  • No secrets committed
  • No unnecessary file changes
  • Commit messages are descriptive
  • Closes #12
  • No plan ancestry -- standalone CI fix
## Summary - The Woodpecker CI test step fails because `pip install .[dev]` in a bare `python:3.12-slim` container is blocked by PEP 668 (externally managed environment) - This PR adds a venv so pip installs cleanly without needing `--break-system-packages` ## Changes - `.woodpecker.yaml`: Changed the test step to create a venv at `/tmp/venv` and run all commands (`pip install`, `ruff check`, `ruff format`, `pytest`) through the venv's Python/pip. The build-and-push step is unchanged. ## Test Plan - [ ] Woodpecker pipeline passes on this PR (push/pull_request trigger) - [ ] Verify the build-and-push step still works on merge to main - [ ] No regressions in CI behavior ## Review Checklist - [ ] Passed automated review-fix loop - [ ] No secrets committed - [ ] No unnecessary file changes - [ ] Commit messages are descriptive ## Related - Closes #12 - No plan ancestry -- standalone CI fix
fix: Use venv in CI test step to avoid --break-system-packages issue
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2fac5b6739
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
forgejo_admin deleted branch 12-fix-ci-test-step-fails-due-to-missing-ve 2026-03-09 18:29:26 +00:00
Sign in to join this conversation.
No description provided.