Skip to content

Commit

Permalink
Disabled real android testing due to device instability. (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorkalov authored Mar 4, 2024
1 parent 8fca8fb commit 64a3347
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/OCV-PR-4.x-Android-Test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: OCV PR:4.x Android aarch64 build and test
name: OCV PR:4.x Android aarch64 build

on:
pull_request:
Expand Down Expand Up @@ -90,30 +90,32 @@ jobs:
run: python3 $GIT_CACHE/warnings-handling.py
working-directory: ${{ github.workspace }}/build
- name: Touch device
if: 0
run: |
${{ env.ANDROID_HOME }}/platform-tools/adb kill-server
${{ env.ANDROID_HOME }}/platform-tools/adb start-server
${{ env.ANDROID_HOME }}/platform-tools/adb devices
${{ env.ANDROID_HOME }}/platform-tools/adb shell cat /proc/cpuinfo
- name: Start adb logging
if: 0
run: |
rm -f android_logcat.log
${{ env.ANDROID_HOME }}/platform-tools/adb logcat -c
nohup ${{ env.ANDROID_HOME }}/platform-tools/adb logcat 2>&1 | tee android_logcat.log &
- name: Test Java
timeout-minutes: 60
id: java-test
if: ${{ always() && steps.build-opencv.outcome == 'success' }}
if: 0 # ${{ always() && steps.build-opencv.outcome == 'success' }}
run: |
${{ env.ANDROID_HOME }}/platform-tools/adb uninstall org.opencv.tests || 0
./gradlew -i tests_module:connectedAndroidTest
working-directory: ${{ github.workspace }}/build/android_test
- name: Stop adb logging
run: ${{ env.ANDROID_HOME }}/platform-tools/adb kill-server
if: ${{ always() }}
if: 0 # ${{ always() }}
- name: Save Unit Test Results
timeout-minutes: 5
if: ${{ always() }}
if: 0 # ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: android-junit-html
Expand Down

0 comments on commit 64a3347

Please sign in to comment.