Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test coverage report #376

Merged
merged 3 commits into from
Feb 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
source env/activate
pytest -v tests/torch \
--junit-xml=${{ steps.strings.outputs.test_report_path_torch }} \
--cov=tests/torch --cov-append
--cov=tt_torch --cov-report term --cov-report xml:coverage.xml

- name: Upload Test Report Torch
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
tests/models/torchvision/test_torchvision_image_classification.py::test_torchvision_image_classification[full-eval-regnet_x_16gf] \
tests/models/torchvision/test_torchvision_image_classification.py::test_torchvision_image_classification[full-eval-regnet_x_32gf] \
--junit-xml=${{ steps.strings.outputs.test_report_path_models }} \
--cov=tests/models --cov-append
--cov=tt_torch --cov-report term --cov-report xml:coverage.xml --cov-append

- name: Upload Test Report Models
uses: actions/upload-artifact@v4
Expand All @@ -164,7 +164,7 @@ jobs:
source env/activate
pytest -v tests/onnx \
--junit-xml=${{ steps.strings.outputs.test_report_path_onnx }} \
--cov=tests/onnx --cov-append
--cov=tt_torch --cov-report term --cov-report xml:coverage.xml --cov-append

- name: Upload Test Report Onnx
uses: actions/upload-artifact@v4
Expand All @@ -184,20 +184,12 @@ jobs:
detailed_summary: true
group_suite: true

- name: Prepare code coverage report
if: success() || failure()
continue-on-error: true
run: |
lcov --directory . --capture --output-file coverage.info
# lcov --extract coverage.info '**/tt_torch/csrc/*' --output-file coverage.info
lcov --list coverage.info

- name: Upload coverage reports to Codecov
if: success() || failure()
continue-on-error: true
uses: codecov/codecov-action@v5
with:
files: coverage.info,.coverage
files: coverage.info,.coverage,coverage.xml
# disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}

Expand Down
Loading