Test coverage job timing out on PRs only

I have successfully set up code coverage reporting on my master branch, but it isnt working on the pull requests.

The deepsource CLI submission of code coverage is successful in the PR test job, however the “DeepSource: Test coverage” action on the PR is timing out.

PR is @jayvdb/cargo-test-xunit #2 , which is a public repo. I cant link to it due to discourse rules.

Hey, I took a look at your GitHub action. You’ll need to update your checkout step to checkout to the pull request HEAD instead of the merge commit. You can do so by specifying ref in the checkout step. Eg:

  - uses: actions/checkout@v3
    with:
      ref: ${{ github.event.pull_request.head.sha }}

You can find further documentation about the Test Coverage analyzer here.

1 Like

Thanks, that did the trick - tested on another PR.

1 Like