@@ -53,14 +53,18 @@ 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"
62+
63+ - name : Set up Python 3.9
64+ run : uv python install 3.9
6165
6266 - name : Install dependencies
63- run : pip install .[ dev]
67+ run : uv sync --extra dev
6468
6569 # Generate today's date for use in progress cache keys
6670 # This ensures we get a new cache entry each day for incremental progress
@@ -97,13 +101,15 @@ jobs:
97101 # This is used, to safe the keys across multiple runs.
98102 - name : Generate keys when missing
99103 id : generate
104+ env :
105+ PYTHONUNBUFFERED : " 1" # Enable unbuffered output for real-time logs
100106 run : |
101107 set -x # Enable command echoing for transparency
102108 mkdir -p "${KEY_DIR}"
103109
104- # Run the key generation script with -u flag for unbuffered output (real-time logs)
110+ # Run the key generation script
105111 # It will skip keys that already exist and only generate missing ones
106- python -u scripts/pipeline_gen_stfl_keys.py "${KEY_DIR}"
112+ uv run scripts/pipeline_gen_stfl_keys.py "${KEY_DIR}"
107113
108114 # Show what keys we have now
109115 ls -lah "${KEY_DIR}"
@@ -121,7 +127,7 @@ jobs:
121127 id : check-complete
122128 run : |
123129 # 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
130+ if uv run scripts/pipeline_gen_stfl_keys.py "${KEY_DIR}" --check_keys_dir; then
125131 echo "complete=true" >> $GITHUB_OUTPUT
126132 else
127133 echo "complete=false" >> $GITHUB_OUTPUT
0 commit comments