Skip to content

Add --extra dev flag to uv sync in CI workflow#11

Open
Copilot wants to merge 2 commits intomainfrom
copilot/update-ci-install-dev-dependencies
Open

Add --extra dev flag to uv sync in CI workflow#11
Copilot wants to merge 2 commits intomainfrom
copilot/update-ci-install-dev-dependencies

Conversation

Copy link

Copilot AI commented Jan 23, 2026

CI workflow fails when attempting to run ruff because optional dev dependencies aren't installed. The pyproject.toml defines ruff, pytest, and related tools under [project.optional-dependencies].dev, but the workflow runs uv sync without the --extra dev flag.

Changes

  • Updated .github/workflows/ci.yml line 26: uv syncuv sync --extra dev

This ensures dev tools (ruff, pytest, pytest-cov, pytest-asyncio) are available for linting and testing steps.

Original prompt

Problem

The CI workflow is failing with the error:

error: Failed to spawn: `ruff`
  Caused by: No such file or directory (os error 2)

This is happening because ruff is not being installed during the workflow run.

Root Cause

The workflow file .github/workflows/ci.yml runs uv sync without installing optional dependencies. However, ruff is defined as an optional dev dependency in pyproject.toml under [project.optional-dependencies].

Solution

Update the "Install dependencies" step in .github/workflows/ci.yml to install dev dependencies by changing:

- name: Install dependencies
  run: uv sync

to:

- name: Install dependencies
  run: uv sync --extra dev

This will ensure that ruff and other dev dependencies (like pytest, pytest-cov, pytest-asyncio) are installed before the linting and testing steps run.

Files to Modify

  • .github/workflows/ci.yml - Line 26: Change uv sync to uv sync --extra dev

This pull request was created from Copilot chat.


💡 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.

@agileandy agileandy marked this pull request as ready for review January 23, 2026 15:10
Copilot AI review requested due to automatic review settings January 23, 2026 15:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai
Copy link

coderabbitai bot commented Jan 23, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: agileandy <71829379+agileandy@users.noreply.github.com>
Copilot AI changed the title [WIP] Update CI workflow to install dev dependencies Add --extra dev flag to uv sync in CI workflow Jan 23, 2026
Copilot AI requested a review from agileandy January 23, 2026 15:13
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.

3 participants