diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1367dae2..8bfd4abe 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -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 @@ -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 @@ -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 @@ -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 }}