From 200ef531419b4d7515fb08c6f952193df1db1628 Mon Sep 17 00:00:00 2001 From: Jean Cochrane Date: Sat, 21 Mar 2026 11:34:36 -0500 Subject: [PATCH 1/2] Ensure `generate-homeval` workflow installs Python dependencies from `uv.lock` --- .github/workflows/generate-homeval.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-homeval.yaml b/.github/workflows/generate-homeval.yaml index dbae6d8..92840f8 100644 --- a/.github/workflows/generate-homeval.yaml +++ b/.github/workflows/generate-homeval.yaml @@ -117,7 +117,7 @@ jobs: python-version-file: scripts/generate_homeval/.python-version - name: Install Python requirements - run: uv pip install . + run: uv sync --frozen working-directory: scripts/generate_homeval - name: Configure AWS credentials (OIDC) @@ -198,7 +198,7 @@ jobs: python-version-file: scripts/generate_homeval/.python-version - name: Install Python requirements - run: uv pip install . + run: uv sync --frozen working-directory: scripts/generate_homeval - name: Configure AWS credentials (OIDC) From 944f6accf7d07070323453f3612b8c7d8b6696f0 Mon Sep 17 00:00:00 2001 From: Jean Cochrane Date: Sat, 21 Mar 2026 11:44:14 -0500 Subject: [PATCH 2/2] Use `uv run` to run scripts in `generate-homeval` workflow to use virtualenv --- .github/workflows/generate-homeval.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-homeval.yaml b/.github/workflows/generate-homeval.yaml index 92840f8..404c64e 100644 --- a/.github/workflows/generate-homeval.yaml +++ b/.github/workflows/generate-homeval.yaml @@ -70,7 +70,6 @@ on: env: PYTHONUNBUFFERED: "1" - UV_SYSTEM_PYTHON: 1 AWS_REGION: us-east-1 AWS_ATHENA_S3_STAGING_DIR: s3://ccao-athena-results-us-east-1/ HUGO_VERSION: "0.147.5" @@ -138,7 +137,10 @@ jobs: if [ "${{ inputs.eligible-only }}" = "true" ]; then ELIG_FLAG="--eligible-only" fi - python3 scripts/generate_homeval/resolve_model_metadata.py \ + uv run \ + --frozen \ + --project scripts/generate_homeval \ + python3 scripts/generate_homeval/resolve_model_metadata.py \ --year "${{ inputs.year }}" \ --run-id "${{ inputs.run_id }}" \ --pin "${PINS[@]}" \ @@ -241,7 +243,10 @@ jobs: # Unquoted neighborhood flag is intentional in this call, since we # want this to expand to nothing (rather than an empty string) if # the variable is empty - python3 scripts/generate_homeval/generate_homeval.py \ + uv run \ + --frozen \ + --project scripts/generate_homeval \ + python3 scripts/generate_homeval/generate_homeval.py \ --run-id "$RUN_ID" \ --township "$TOWNSHIP" \ --pin "${PINS[@]}" \