Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix CI: Add --clear flag to cached uv venv commands#1205

Merged
SkBlaz merged 2 commits intomasterSkBlaz/py3plex:masterfrom
copilot/fix-virtual-environment-errorSkBlaz/py3plex:copilot/fix-virtual-environment-errorCopy head branch name to clipboard
Feb 6, 2026
Merged

Fix CI: Add --clear flag to cached uv venv commands#1205
SkBlaz merged 2 commits intomasterSkBlaz/py3plex:masterfrom
copilot/fix-virtual-environment-errorSkBlaz/py3plex:copilot/fix-virtual-environment-errorCopy head branch name to clipboard

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 6, 2026

Problem

CI workflows fail when actions/cache restores .venv directory, as uv venv .venv errors on existing virtual environments.

Solution

Add --clear flag to uv venv invocations in workflows that cache .venv:

- uv venv .venv
+ uv venv --clear .venv

Changes

Modified 6 workflows (10 instances total):

  • tests.yml - main test job, minimal test, nightly metamorphic (3×)
  • property-tests.yml - main, slow, minimal jobs (3×)
  • benchmarks.yml, examples.yml, tutorial-validation.yml, verify.yml (1× each)

Workflows without caching (code-quality.yml, docs*.yml, etc.) are unaffected.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Add --clear flag to uv venv commands in workflows that use caching to prevent
"virtual environment already exists" errors when cache is restored.

Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix virtual environment creation failure in development setup Fix CI: Add --clear flag to cached uv venv commands Feb 6, 2026
Copilot AI requested a review from SkBlaz February 6, 2026 05:41
@SkBlaz SkBlaz marked this pull request as ready for review February 6, 2026 05:48
@SkBlaz SkBlaz merged commit bd5dd9a into master Feb 6, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.