diff --git a/.github/workflows/ci-tests-fabric.yml b/.github/workflows/ci-tests-fabric.yml index 9b09f4fc9ca03..42c2b4ee476d7 100644 --- a/.github/workflows/ci-tests-fabric.yml +++ b/.github/workflows/ci-tests-fabric.yml @@ -159,7 +159,8 @@ jobs: run: | echo $GITHUB_RUN_ID python -m coverage run --source ${{ env.COVERAGE_SCOPE }} \ - -m pytest -v --timeout=30 --durations=50 --random-order-seed=$GITHUB_RUN_ID + -m pytest -v --timeout=30 --durations=50 --random-order-seed=$GITHUB_RUN_ID \ + --junitxml=junit.xml -o junit_family=legacy # NOTE: for Codecov's test results - name: Statistics if: success() diff --git a/.github/workflows/ci-tests-pytorch.yml b/.github/workflows/ci-tests-pytorch.yml index f50dc3a88f2e5..5720b696cbc2f 100644 --- a/.github/workflows/ci-tests-pytorch.yml +++ b/.github/workflows/ci-tests-pytorch.yml @@ -196,7 +196,8 @@ jobs: run: | echo $GITHUB_RUN_ID python -m coverage run --source ${{ env.COVERAGE_SCOPE }} \ - -m pytest . -v --timeout=60 --durations=50 --random-order-seed=$GITHUB_RUN_ID + -m pytest . -v --timeout=60 --durations=50 --random-order-seed=$GITHUB_RUN_ID \ + --junitxml=junit.xml -o junit_family=legacy # NOTE: for Codecov's test results - name: Statistics if: success() @@ -205,6 +206,12 @@ jobs: coverage report coverage xml + - name: Upload test results to Codecov + if: ${{ !cancelled() }} # Run even if tests fail + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 # see: https://github.com/actions/toolkit/issues/399