chore(ci): coverage report fixing
@@ -185,10 +185,21 @@ jobs:
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
+ # https://community.codecov.com/t/files-missing-from-report/3902/7
+ # The coverage file being created records filenames at the distributed/ directory
+ # as opposed to root. This is causing filename mismatches in Codecov.
+ # This step edits `coverage.xml` in-file by adding `distributed` to all filenames.
+ - name: Prepare coverage report
+ if: ${{ matrix.os != 'windows-latest' }}
+ shell: bash -l {0}
+ run: sed -i'' -e 's/filename="/filename="distributed\//g' coverage.xml
+
+ # Do not upload coverage reports for cron jobs
- name: Coverage
+ if: github.event_name != 'schedule'
uses: codecov/codecov-action@v3
with:
- functionalities: network
+ name: ${{ env.TEST_ID }}
- name: Upload test results
# ensure this runs even if pytest fails
