Skip to content

Commit aa3c610

Browse files
committed
Fix enviorment setup for cache_xmss_and_xmssmt_keys.yml.
Signed-off-by: Guiliano99 <[email protected]>
1 parent 746f107 commit aa3c610

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/cache_xmss_and_xmssmt_keys.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,15 @@ jobs:
5353
runs-on: ubuntu-latest
5454
steps:
5555
- uses: actions/checkout@v4
56-
57-
# Set up Python 3.9 environment, but could be changed as needed.
58-
- uses: actions/setup-python@v5
56+
- name: Install uv
57+
uses: astral-sh/setup-uv@v5
5958
with:
60-
python-version: "3.9"
59+
version: "latest"
60+
enable-cache: true
61+
cache-dependency-glob: "**/pyproject.toml"
6162

62-
- name: Install dependencies
63-
run: pip install .[dev]
63+
- name: Set up Python 3.9
64+
run: uv python install 3.9
6465

6566
# Generate today's date for use in progress cache keys
6667
# This ensures we get a new cache entry each day for incremental progress
@@ -103,7 +104,7 @@ jobs:
103104
104105
# Run the key generation script with -u flag for unbuffered output (real-time logs)
105106
# It will skip keys that already exist and only generate missing ones
106-
python -u scripts/pipeline_gen_stfl_keys.py "${KEY_DIR}"
107+
uv run scripts/pipeline_gen_stfl_keys.py "${KEY_DIR}"
107108
108109
# Show what keys we have now
109110
ls -lah "${KEY_DIR}"
@@ -121,7 +122,7 @@ jobs:
121122
id: check-complete
122123
run: |
123124
# Use the --check_keys_dir flag to verify all keys are present
124-
if python scripts/pipeline_gen_stfl_keys.py "${KEY_DIR}" --check_keys_dir; then
125+
if uv run scripts/pipeline_gen_stfl_keys.py "${KEY_DIR}" --check_keys_dir; then
125126
echo "complete=true" >> $GITHUB_OUTPUT
126127
else
127128
echo "complete=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)