@@ -181,17 +181,22 @@ jobs:
181181 with :
182182 python-version : 3.12
183183
184+ - name : Cache uv modules
185+ uses : actions/cache@v4
186+ with :
187+ path : |
188+ ~/.cache/uv
189+ .venv
190+ key : ${{ runner.os }}-uv-shared-${{ hashFiles('**/uv.lock') }}
191+ restore-keys : |
192+ ${{ runner.os }}-uv-shared-
193+
184194 - name : run tests
185195 uses : reactivecircus/android-emulator-runner@v2
186196 with :
187197 api-level : ${{ env.API_LEVEL }}
188198 arch : ${{ env.ARCH }}
189199 script : |
190- # Cache uv modules
191- mkdir -p ~/.cache/uv
192- if [ -d ~/.cache/uv ]; then
193- echo "uv cache directory exists"
194- fi
195200 make install-uv
196201 uv run pytest ${{ matrix.test_targets.target}} --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
197202 target : google_apis
@@ -278,8 +283,7 @@ jobs:
278283 server_args : ' --relaxed-security'
279284 log_file : ' appium_flutter_android.log'
280285
281- - name : Cache uv modules for Flutter Android
282- if : matrix.e2e-tests == 'flutter-android'
286+ - name : Cache uv modules
283287 uses : actions/cache@v4
284288 with :
285289 path : |
@@ -314,7 +318,7 @@ jobs:
314318 with :
315319 xcode-version : ${{ env.XCODE_VERSION }}
316320
317- - uses : futureware-tech/simulator-action@v3
321+ - uses : futureware-tech/simulator-action@v4
318322 if : matrix.e2e-tests == 'flutter-ios'
319323 with :
320324 # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
@@ -344,17 +348,6 @@ jobs:
344348 server_args : ' --relaxed-security'
345349 log_file : ' appium_ios.log'
346350
347- - name : Cache uv modules for Flutter iOS
348- if : matrix.e2e-tests == 'flutter-ios'
349- uses : actions/cache@v4
350- with :
351- path : |
352- ~/.cache/uv
353- .venv
354- key : ${{ runner.os }}-uv-shared-${{ hashFiles('**/uv.lock') }}
355- restore-keys : |
356- ${{ runner.os }}-uv-shared-
357-
358351 - name : Run IOS tests
359352 if : matrix.e2e-tests == 'flutter-ios'
360353 run : |
0 commit comments