diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e42465a..0bf8e6b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ name: Workflow for Codecov example-python -on: [push, pull_request] +on: [push, pull_request, pull_request_target] jobs: run: runs-on: ubuntu-latest @@ -17,8 +17,7 @@ jobs: - name: Run tests and collect coverage run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }} - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@th/fix-pr-and-commit-fixes with: + fail_ci_if_error: true verbose: true - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}