Skip to content

fix: add --project flag to uv entrypoint for GitHub Actions compatibility#700

Merged
jmeridth merged 1 commit intomainfrom
fix/uv-entrypoint-project-flag
Mar 14, 2026
Merged

fix: add --project flag to uv entrypoint for GitHub Actions compatibility#700
jmeridth merged 1 commit intomainfrom
fix/uv-entrypoint-project-flag

Conversation

@jmeridth
Copy link
Copy Markdown
Collaborator

Problem

The uv migration introduced a runtime regression in the Docker image. GitHub Actions' Docker container runner overrides the working directory to /github/workspace via --workdir, which causes uv run to not find the pyproject.toml at /action/workspace. It falls back to system Python (which has no packages installed), resulting in:

ModuleNotFoundError: No module named 'github3'

Fix

Add --project /action/workspace to the ENTRYPOINT so uv always discovers the project and its .venv regardless of the runtime working directory.

Testing

Verified locally with Docker:

Test Outcome
Before fix (--workdir /github/workspace) ModuleNotFoundError: No module named 'github3'
After fix (--project /action/workspace) Imports succeed, runs correctly ✅

…lity

Signed-off-by: Jason Meridth <jmeridth@gmail.com>
Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth jmeridth requested a review from zkoppert as a code owner March 14, 2026 01:04
Copilot AI review requested due to automatic review settings March 14, 2026 01:04
@github-actions github-actions bot added the fix label Mar 14, 2026
Copy link
Copy Markdown
Contributor

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.

Pull request overview

This PR fixes a runtime regression in the Docker-based GitHub Action caused by GitHub Actions overriding the container working directory, which prevented uv run from discovering the project and its virtual environment.

Changes:

  • Update the Docker ENTRYPOINT to include --project /action/workspace so uv consistently resolves pyproject.toml and the .venv regardless of runtime --workdir.

@jmeridth jmeridth merged commit 6a35322 into main Mar 14, 2026
44 checks passed
@jmeridth jmeridth deleted the fix/uv-entrypoint-project-flag branch March 14, 2026 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants