-
Notifications
You must be signed in to change notification settings - Fork 0
Fix workflow setup for uv sync --dev in both template and repository #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Fix for failing CI workflow
second attempt
|
@copilot - still failing. Presumably more general edits to workflow setup needed. |
- Added UV_SYSTEM_PYTHON="1" to repository workflow for system Python compatibility - Added [tool.uv] managed=true to pyproject.toml for proper uv project management - Both template and repository workflows now properly configured for uv sync Co-authored-by: dosumis <112839+dosumis@users.noreply.github.com>
Fixed in b88e749. The issue required updates to both the template workflow and the repository's own workflow:
Both workflows now properly configured for |
|
@copilot still failing! Run uv sync --dev |
The UV_SYSTEM_PYTHON=1 setting was preventing uv from properly installing packages into the virtual environment. Removing it allows uv sync to create and populate a proper venv, fixing the "pytest not found" error. Co-authored-by: dosumis <112839+dosumis@users.noreply.github.com>
Fixed in 96fb263. The issue was The CI log showed "Audited in 0.00ms" which meant no packages were installed. Removed |
The workflows were failing due to incorrect
uv sync --devconfiguration. Both the template's GitHub Actions workflow and the repository's own workflow needed updates to properly support uv-based dependency management.Changes
Template workflow (
{{cookiecutter.project_slug}}/.github/workflows/test.yml):uv pip install -e ".[dev]"withuv sync --devVerify uv installationstepRepository workflow (
.github/workflows/tests.yml):Repository configuration (
pyproject.toml):[tool.uv]section withmanaged = truefor proper uv project managementRoot Cause
The initial attempt added
UV_SYSTEM_PYTHON: "1"which prevented uv from properly installing packages into its virtual environment. The CI logs showed packages being resolved but not installed ("Audited in 0.00ms"), causing the "pytest not found" error. Removing this environment variable allows uv to create and fully populate its own virtual environment.The
uv synccommand is uv's native project management approach that syncs from lockfile. It requires the ability to create and manage its own virtual environment without interference from system Python settings.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.