Skip to content

fix: Fix Code Complexity Analysis workflow#17

Merged
Vijay-Duke merged 1 commit intomainfrom
fix/code-complexity-ci
Aug 12, 2025
Merged

fix: Fix Code Complexity Analysis workflow#17
Vijay-Duke merged 1 commit intomainfrom
fix/code-complexity-ci

Conversation

@Vijay-Duke
Copy link
Copy Markdown
Owner

Summary

Fixes the Code Complexity Analysis workflow that was failing in CI.

Problem

The workflow was failing with the error:

error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment

Solution

Added the --system flag to the uv pip install command to allow installation of packages system-wide since the workflow doesn't create a virtual environment.

Changes

  • Added --system flag to uv pip install command in the Code Complexity Analysis job

Testing

The workflow should now successfully install the required analysis tools (radon, xenon, flake8, flake8-cognitive-complexity) and run the complexity checks.

Related

This issue was discovered while working on PR #16 where all other CI checks passed except for Code Complexity Analysis.

The Code Complexity Analysis job was failing because uv pip install
requires either a virtual environment or the --system flag to install
packages system-wide. Since the workflow doesn't create a venv, we
need to use --system flag.

This fixes the error: 'No virtual environment found; run uv venv to
create an environment, or pass --system to install into a non-virtual
environment'
@Vijay-Duke Vijay-Duke merged commit e94e4aa into main Aug 12, 2025
11 checks passed
@Vijay-Duke Vijay-Duke deleted the fix/code-complexity-ci branch August 12, 2025 00:52
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.

1 participant