diff --git a/.github/workflows/python-CI.yml b/.github/workflows/python-CI.yml index d1b7198..b4c6111 100644 --- a/.github/workflows/python-CI.yml +++ b/.github/workflows/python-CI.yml @@ -49,6 +49,7 @@ jobs: run: exit 1 - name: Upload to Codecov + if: github.ref == 'refs/heads/main' uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -58,7 +59,7 @@ jobs: verbose: true - name: Upload test results to Codecov - if: ${{ !cancelled() }} + if: github.ref == 'refs/heads/main' && !cancelled() uses: codecov/test-results-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }}