607 maintenance integrate uv to dockerfile and GitHub workflow#617
Open
valhassan wants to merge 9 commits intoNRCan:mainfrom
Open
607 maintenance integrate uv to dockerfile and GitHub workflow#617valhassan wants to merge 9 commits intoNRCan:mainfrom
valhassan wants to merge 9 commits intoNRCan:mainfrom
Conversation
… version ranges for better compatibility
…ndency management, optimize caching, and set up a non-root user for runtime execution.
…patial libraries, and enhance environment configuration for improved runtime performance.
…rom Docker builds, improving build efficiency and reducing image size.
…by upgrading action versions, consolidating build and push steps, and improving metadata extraction for tags and labels.
… to UV for dependency management, and streamline testing and linting processes with enhanced Python version support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR integrates uv as the project’s Python/package tooling and updates the GitHub workflows to match.
Summary of changes:
ghcr.io/astral-sh/uv), Python 3.12,uv sync --frozenwithcu128extra; builder stage with deps + venv, runtime stage with minimal CUDA runtime and geospatial libs.docker build/docker tag/docker pushwithdocker/build-push-action@v6; metadata now targets.../gdl-cuda12with version + latest tags; bumpedactions/checkout@v5,docker/login-action@v3. BuildKit is used by the action (required for DockerfileRUN --mount=...).requirements.txtto uv; Python 3.12 (matchespyproject.toml); single install stepuv sync --frozen --extra dev --extra cpu; added lint step (ruff check + format --check); tests run withuv run --frozen pytest tests/;astral-sh/setup-uv@v7,actions/checkout@v5, uv cache enabled.Motivation: Align Docker and CI with the lockfile and
pyproject.toml, use a single toolchain (uv), and simplify/maintain the workflows.Dependencies: None.
Fixes #607
Type of change
How Has This Been Tested?
github-actions-ci.ymlruns on push/PR (checkout → setup-uv → uv sync → ruff → pytest). Passing CI confirms install, lint, and tests.build-on-tag.ymlruns on tag push; build uses BuildKit andbuild-push-action. No new pytest coverage added; changes are to build and CI only.Screenshots (if applicable):
N/A
Checklist