Skip to content

Commit d4d8794

Browse files
committed
Add UV_SYSTEM_PYTHON and UV_PROJECT_ENVIRONMENT
1 parent aa00171 commit d4d8794

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/actions/build-node-python/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ runs:
198198
run: |
199199
# Run node and python in parallel
200200
201+
# In case uv sync is used, sync into the system python environment
202+
# https://github.com/astral-sh/uv/issues/8085#issuecomment-2406665798
203+
export UV_PROJECT_ENVIRONMENT="${pythonLocation}"
204+
201205
# Define the node sequence of commands
202206
node_job() {
203207
set -e
@@ -280,7 +284,9 @@ runs:
280284
RUN_PYTHON_LINT: ${{ inputs.run_python_lint }}
281285
RUN_PYTHON_TEST: ${{ inputs.run_python_test }}
282286
RUN_PYTHON_BUILD: ${{ inputs.run_python_build }}
287+
UV_SYSTEM_PYTHON: 1 # In case uv pip is used, install into the system python environment https://docs.astral.sh/uv/guides/integration/github/#using-uv-pip
283288
UV_HTTP_TIMEOUT: 300 # https://docs.astral.sh/uv/reference/environment/#uv_http_timeout
289+
284290
# Node
285291
- name: Save yarn cache
286292
uses: actions/cache/save@v4

.github/workflows/build-node-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ on:
110110
required: false
111111

112112
env:
113-
WORKFLOW_BRANCH: "main"
113+
WORKFLOW_BRANCH: "mp/release_pyproject" # TODO: Revert
114114
POSTGRES_HOSTNAME: postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }}
115115

116116
permissions:

0 commit comments

Comments
 (0)