I am pushing up a bunch of code coverage files from Github for a single PR. The analyser is receiving them but the analysis is consistently timing out. Any suggestions as to what I could do differently?
The github action file looks a little like this
env:
# other stuff ...
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
# other stuff here ...
- name: install deepsource cli
run: curl https://deepsource.io/cli | sh
- name: Unit tests
run: pnpm run -r --filter=dotnet-sln test:unit --nowarn:CS0618 /property:WarningLevel=0
- name: Get unit test coverage files
run: |
# Find all XML coverage files matching a wildcard pattern
U_COVERAGE_FILES=$(find $GITHUB_WORKSPACE/UnitTestCoverage/ -type f -name '*.xml')
# Iterate over each coverage file and run DeepSource action
for file in $U_COVERAGE_FILES; do
echo "Processing $file"
# Invoke DeepSource action for each coverage file
./bin/deepsource report --analyzer test-coverage --key csharp --value-file $file
done ```
The tests are running and writing to the correct directory and the upload is working with the analysis step being triggered.