Skip to content

Commit 99c848a

Browse files
vahid-ahmadiclaude
andcommitted
Fix workflow: use virtual environment instead of --system
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1086bfe commit 99c848a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/generate-data.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,20 @@ jobs:
2626
with:
2727
version: "latest"
2828

29-
- name: Set up Python
30-
run: uv python install 3.11
31-
32-
- name: Install dependencies
29+
- name: Set up Python and install dependencies
3330
env:
3431
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
3532
run: |
36-
uv pip install --system policyengine-uk pandas numpy h5py
33+
uv venv
34+
uv pip install policyengine-uk pandas numpy h5py
3735
3836
- name: Generate dashboard data
3937
env:
4038
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
4139
PYTHONPATH: ${{ github.workspace }}/src
4240
run: |
4341
cd ${{ github.workspace }}
42+
source .venv/bin/activate
4443
python -c "from scottish_budget_data import generate_all_data; generate_all_data()"
4544
4645
- name: Check for changes

0 commit comments

Comments
 (0)