3838 e2e_js : ${{ github.event_name != 'pull_request' || steps.check.outputs.e2e_js == 'true' }}
3939 e2e_java : ${{ github.event_name != 'pull_request' || steps.check.outputs.e2e_java == 'true' }}
4040 steps :
41- - uses : actions/checkout@v4
41+ - uses : actions/checkout@v6
4242 if : github.event_name == 'pull_request'
4343 with :
4444 fetch-depth : 0
@@ -127,7 +127,7 @@ jobs:
127127 env :
128128 PYTHONIOENCODING : utf-8
129129 steps :
130- - uses : actions/checkout@v4
130+ - uses : actions/checkout@v6
131131 with :
132132 fetch-depth : 1
133133 token : ${{ secrets.GITHUB_TOKEN }}
@@ -136,13 +136,15 @@ jobs:
136136 uses : astral-sh/setup-uv@v8.0.0
137137 with :
138138 python-version : ${{ matrix.python-version }}
139+ enable-cache : true
139140
140141 - name : Install dependencies
141- run : uv sync
142-
143- - name : Install test-only dependencies (Python 3.9 and 3.13)
144- if : matrix.python-version == '3.9' || matrix.python-version == '3.13'
145- run : uv sync --group tests
142+ run : |
143+ if [[ "${{ matrix.python-version }}" == "3.9" || "${{ matrix.python-version }}" == "3.13" ]]; then
144+ uv sync --group tests
145+ else
146+ uv sync
147+ fi
146148
147149 - name : Unit tests
148150 run : uv run pytest tests/
@@ -155,18 +157,18 @@ jobs:
155157 if : needs.determine-changes.outputs.type_check == 'true'
156158 runs-on : ubuntu-latest
157159 steps :
158- - uses : actions/checkout@v4
160+ - uses : actions/checkout@v6
159161 with :
160162 fetch-depth : 1
161163 token : ${{ secrets.GITHUB_TOKEN }}
162164
163165 - name : Install uv
164166 uses : astral-sh/setup-uv@v8.0.0
167+ with :
168+ enable-cache : true
165169
166170 - name : Install dependencies
167- run : |
168- uv venv --seed
169- uv sync
171+ run : uv sync
170172
171173 - name : Run mypy
172174 run : uv run mypy --non-interactive --config-file pyproject.toml @mypy_allowlist.txt
@@ -184,11 +186,13 @@ jobs:
184186 permissions :
185187 contents : write
186188 steps :
187- - uses : actions/checkout@v4
189+ - uses : actions/checkout@v6
188190 with :
189191 ref : ${{ github.head_ref }}
190192 fetch-depth : 0
191193 - uses : astral-sh/setup-uv@v8.0.0
194+ with :
195+ enable-cache : true
192196
193197 - name : Auto-fix formatting
194198 run : |
@@ -204,7 +208,7 @@ jobs:
204208 git commit -m "style: auto-format with ruff"
205209 git push
206210
207- - uses : j178/prek-action@v1
211+ - uses : j178/prek-action@v2
208212 with :
209213 extra-args : ' --from-ref origin/${{ github.base_ref }} --to-ref HEAD'
210214
@@ -260,7 +264,7 @@ jobs:
260264 RETRY_DELAY : 5
261265 CODEFLASH_END_TO_END : 1
262266 steps :
263- - uses : actions/checkout@v4
267+ - uses : actions/checkout@v6
264268 with :
265269 ref : ${{ github.event.pull_request.head.ref || '' }}
266270 repository : ${{ github.event.pull_request.head.repo.full_name || '' }}
@@ -280,6 +284,7 @@ jobs:
280284 uses : astral-sh/setup-uv@v8.0.0
281285 with :
282286 python-version : 3.11.6
287+ enable-cache : true
283288
284289 - name : Install dependencies
285290 run : uv sync
@@ -348,7 +353,7 @@ jobs:
348353 EXPECTED_IMPROVEMENT_PCT : ${{ matrix.expected_improvement }}
349354 CODEFLASH_END_TO_END : 1
350355 steps :
351- - uses : actions/checkout@v4
356+ - uses : actions/checkout@v6
352357 with :
353358 ref : ${{ github.event.pull_request.head.ref || '' }}
354359 repository : ${{ github.event.pull_request.head.repo.full_name || '' }}
@@ -365,7 +370,7 @@ jobs:
365370 pr_state : ${{ github.event.pull_request.state }}
366371
367372 - name : Set up Node.js
368- uses : actions/setup-node@v4
373+ uses : actions/setup-node@v6
369374 with :
370375 node-version : ' 20'
371376 cache : ' npm'
@@ -387,6 +392,7 @@ jobs:
387392 uses : astral-sh/setup-uv@v8.0.0
388393 with :
389394 python-version : 3.11.6
395+ enable-cache : true
390396
391397 - name : Install dependencies
392398 run : uv sync
@@ -427,7 +433,7 @@ jobs:
427433 EXPECTED_IMPROVEMENT_PCT : ${{ matrix.expected_improvement }}
428434 CODEFLASH_END_TO_END : 1
429435 steps :
430- - uses : actions/checkout@v4
436+ - uses : actions/checkout@v6
431437 with :
432438 ref : ${{ github.event.pull_request.head.ref || '' }}
433439 repository : ${{ github.event.pull_request.head.repo.full_name || '' }}
@@ -444,7 +450,7 @@ jobs:
444450 pr_state : ${{ github.event.pull_request.state }}
445451
446452 - name : Set up JDK 11
447- uses : actions/setup-java@v4
453+ uses : actions/setup-java@v5
448454 with :
449455 java-version : ' 11'
450456 distribution : ' temurin'
@@ -454,6 +460,7 @@ jobs:
454460 uses : astral-sh/setup-uv@v8.0.0
455461 with :
456462 python-version : 3.11.6
463+ enable-cache : true
457464
458465 - name : Install dependencies
459466 run : uv sync
0 commit comments