diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e42465a..4347a9a5 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 @@ -15,10 +15,10 @@ jobs: - name: Install dependencies run: pip install -r requirements.txt - name: Run tests and collect coverage - run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }} + run: pytest --cov app - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@main with: + fail_ci_if_error: true verbose: true - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + use_oidc: true