Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/generate-homeval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ on:

env:
PYTHONUNBUFFERED: "1"
UV_SYSTEM_PYTHON: 1

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to set UV_SYSTEM_PYTHON anymore because we're going to use uv run to run our Python scripts. uv run uses a virtual environment, so it doesn't need to install packages into the system site-packages.

AWS_REGION: us-east-1
AWS_ATHENA_S3_STAGING_DIR: s3://ccao-athena-results-us-east-1/
HUGO_VERSION: "0.147.5"
Expand Down Expand Up @@ -117,7 +116,7 @@ jobs:
python-version-file: scripts/generate_homeval/.python-version

- name: Install Python requirements
run: uv pip install .
run: uv sync --frozen

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The --frozen option will ensure that uv does not try to look for more recent versions, and instead installs the exact versions listed in the lockfile (source).

working-directory: scripts/generate_homeval

- name: Configure AWS credentials (OIDC)
Expand All @@ -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[@]}" \
Expand Down Expand Up @@ -198,7 +200,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)
Expand Down Expand Up @@ -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[@]}" \
Expand Down
Loading