diff --git a/.github/workflows/py_test.yml b/.github/workflows/py_test.yml index e8da178..4ded184 100644 --- a/.github/workflows/py_test.yml +++ b/.github/workflows/py_test.yml @@ -61,10 +61,24 @@ jobs: - name: Create coverage file run: coverage xml - - name: Get Cover - uses: orgoro/coverage@v3.1 +# - name: Get Cover +# uses: orgoro/coverage@v3.1 +# with: +# coverageFile: coverage.xml +# token: ${{ secrets.GITHUB_TOKEN }} +# thresholdAll: 0.7 +# thresholdNew: 0.9 + + - name: Collect coverage + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true + files: ./coverage.xml + verbose: true + + - uses: actions/upload-artifact@v4 with: - coverageFile: coverage.xml - token: ${{ secrets.GITHUB_TOKEN }} - thresholdAll: 0.7 - thresholdNew: 0.9 + name: coverage + path: coverage.xml + retention-days: 1 \ No newline at end of file