diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e225f5b..86d7e3b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,10 @@ name: Test and Publish on: - push + push: + pull_request: + branches: + - main permissions: contents: read @@ -11,6 +14,8 @@ jobs: test: name: run-tests runs-on: ubuntu-latest + if: github.event_name != 'pull_request' || + github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name strategy: matrix: python-version: