asadmansr / android-test-report-action

GitHub Action that prints Android test reports.
https://github.com/marketplace/actions/android-test-report-action
37 stars 8 forks source link

Failing report extraction #1

Closed mahlzahn closed 4 years ago

mahlzahn commented 4 years ago

I get failing report extraction with following output when running over my library:

Run asadmansr/android-test-report-action@v1.0.0
/usr/bin/docker run --name f6cdebb5cd20a73fdd452cbc3143bbb3ffcc6b_7a72f4 --label f6cdeb --workdir /github/workspace --rm -e JAVA_HOME -e JAVA_HOME_8.0.232_x64 -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/koreaderhistfavparser/koreaderhistfavparser":"/github/workspace" f6cdeb:b5cd20a73fdd452cbc3143bbb3ffcc6b
python: can't open file 'extractReport.py': [Errno 2] No such file or directory
##[error]Docker run failed with exit code 2

My action file looks like the following:

name: Android CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Test with Gradle
      run: ./gradlew testDebugUnitTest --info
      continue-on-error: true
    - name: Android Test Report
      uses: asadmansr/android-test-report-action@v1.0.0

My build.gradle is here and my gradlew here.

KubaPreg commented 4 years ago

Got the same issue: python: can't open file 'extractReport.py': [Errno 2] No such file or directory any hints how to fix it?

asadmansr commented 4 years ago

Sorry @mahlzahn and @KubaPreg. I'll look at the current issues and let you know when a fix is available. Thanks

asadmansr commented 4 years ago

Thank you @mahlzahn and @KubaPreg. The fix is available now. You can use the following reference in the workflow for the latest release:

uses: asadmansr/android-test-report-action@v1.1.0

Feel free to open another ticket if you face any issues in the future. Thanks.