@@ -342,6 +342,13 @@ jobs:
342342 sed -E -i 's/SF:src\/(.*)/SF:src\/rust\/src\/\1/g' ../../pytest-rust-cov.lcov
343343 sed -E -i 's/SF:src\/(.*)/SF:src\/rust\/src\/\1/g' ../../cargo-test-rust-cov.lcov
344344
345+ # We use codecov solely for rust coverage now, not Python
346+ - run : |
347+ curl -o codecov.sh -f https://codecov.io/bash || \
348+ curl -o codecov.sh -f https://codecov.io/bash || \
349+ curl -o codecov.sh -f https://codecov.io/bash
350+ bash codecov.sh -n "Rust Coverage" -f '*.lcov' -X coveragepy
351+
345352 - uses : ./.github/actions/upload-coverage
346353 with :
347354 name : " Rust Coverage"
@@ -507,7 +514,7 @@ jobs:
507514 RUST :
508515 - stable
509516 PYTHON :
510- - 3.8
517+ - 3.9
511518 name : " Downstream tests for ${{ matrix.DOWNSTREAM }}"
512519 timeout-minutes : 15
513520 steps :
@@ -575,6 +582,30 @@ jobs:
575582 needs : [linux, linux-distros, linux-rust, linux-rust-coverage, macos, windows, linux-downstream]
576583 if : ${{ always() }}
577584 steps :
578- - run : echo "😢"; exit 1
579- if : ${{ needs.linux.result != 'success' || needs.linux-distros.result != 'success' || needs.linux-rust.result != 'success' || needs.linux-rust-coverage.result != 'success' || needs.macos.result != 'success' || needs.windows.result != 'success' || needs.linux-downstream.result != 'success' }}
580- - run : echo "🎉"
585+ 586+ timeout-minutes : 3
587+ with :
588+ persist-credentials : false
589+ - run : echo "😢"; exit 1
590+ if : ${{ needs.linux.result != 'success' || needs.linux-distros.result != 'success' || needs.linux-rust.result != 'success' || needs.linux-rust-coverage.result != 'success' || needs.macos.result != 'success' || needs.windows.result != 'success' || needs.linux-downstream.result != 'success' }}
591+ - run : echo "🎉"
592+ - name : Setup python
593+ 594+ with :
595+ python-version : ' 3.10'
596+ - run : pip install coverage
597+ - name : Download coverage data
598+ 599+ - run : mv **/.coverage* .
600+ - name : Combine coverage and fail if it's <100%.
601+ run : |
602+ python -m coverage combine
603+ python -m coverage html
604+ python -m coverage report --fail-under=100
605+ - name : Upload HTML report.
606+ 607+ with :
608+ name : _html-report
609+ path : htmlcov
610+ if-no-files-found : ignore
611+ if : ${{ always() }}
0 commit comments