Skip to content

Commit 847a538

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

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/cache_xmss_and_xmssmt_keys.yml

Lines changed: 12 additions & 9 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
@@ -97,13 +98,15 @@ jobs:
9798
# This is used, to safe the keys across multiple runs.
9899
- name: Generate keys when missing
99100
id: generate
101+
env:
102+
PYTHONUNBUFFERED: "1" # Enable unbuffered output for real-time logs
100103
run: |
101104
set -x # Enable command echoing for transparency
102105
mkdir -p "${KEY_DIR}"
103106
104-
# Run the key generation script with -u flag for unbuffered output (real-time logs)
107+
# Run the key generation script
105108
# It will skip keys that already exist and only generate missing ones
106-
python -u scripts/pipeline_gen_stfl_keys.py "${KEY_DIR}"
109+
uv run scripts/pipeline_gen_stfl_keys.py "${KEY_DIR}"
107110
108111
# Show what keys we have now
109112
ls -lah "${KEY_DIR}"
@@ -121,7 +124,7 @@ jobs:
121124
id: check-complete
122125
run: |
123126
# 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
127+
if uv run scripts/pipeline_gen_stfl_keys.py "${KEY_DIR}" --check_keys_dir; then
125128
echo "complete=true" >> $GITHUB_OUTPUT
126129
else
127130
echo "complete=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)