diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a98816..48fcd01 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,7 +61,7 @@ jobs: # If using python 3.11, need to restrict PR codacy report to PR within the same repo, # so that PR across forks will not be reported. Otherwise, will fail to run the report action. # Here we revert to python = 3.11. - - if: ${{ matrix.python_version == 3.11}} + - if: ${{ matrix.python_version == 3.11 && github.event_name == 'push'}} name: codacy-coverage-reporter uses: codacy/codacy-coverage-reporter-action@v1 with: