diff --git a/.github/workflows/pytest_matrix.yml b/.github/workflows/pytest_matrix.yml index fce75a27b..fee7ae683 100644 --- a/.github/workflows/pytest_matrix.yml +++ b/.github/workflows/pytest_matrix.yml @@ -23,8 +23,8 @@ jobs: name: Pytest (All, Python ${{ matrix.python-version }}, ${{ matrix.os }}) # Don't run on forks. Run on pushes to main, and on PRs that are not from forks. if: > - (github.event_name == 'push' && github.ref == 'refs/heads/main') || - (github.event.pull_request.head.repo.fork == false) + github.event_name == 'pull_request' || + (github.event_name == 'push' && github.ref == 'refs/heads/main') strategy: matrix: python-version: [