diff --git a/check-vulnerabilities/action.yml b/check-vulnerabilities/action.yml index c0c9e366c..1104f5b07 100644 --- a/check-vulnerabilities/action.yml +++ b/check-vulnerabilities/action.yml @@ -377,7 +377,11 @@ runs: if [[ "${BUILD_BACKEND}" == 'poetry' ]]; then poetry install --extras "${extra_targets}" elif [[ "${BUILD_BACKEND}" == 'uv' ]]; then - uv pip install ."${extra_targets}" + if [ -f "uv.lock" ]; then + uv sync --extra "${extra_targets}" + else + uv pip install ."${extra_targets}" + fi else python -m pip install ."${extra_targets}" fi diff --git a/code-style/action.yml b/code-style/action.yml index 58fdc4033..3961eb94c 100644 --- a/code-style/action.yml +++ b/code-style/action.yml @@ -250,7 +250,11 @@ runs: if [[ "${BUILD_BACKEND}" == 'poetry' ]]; then poetry install elif [[ "${BUILD_BACKEND}" == 'uv' ]]; then - uv pip install . + if [ -f "uv.lock" ]; then + uv sync + else + uv pip install . + fi else python -m pip install . fi diff --git a/doc/source/changelog/1088.fixed.md b/doc/source/changelog/1088.fixed.md new file mode 100644 index 000000000..0b442a993 --- /dev/null +++ b/doc/source/changelog/1088.fixed.md @@ -0,0 +1 @@ +Use uv sync if lock file is present