Skip to content

Commit b0ec123

Browse files
authored
ci: update pytest workflow to trigger on all pull requests, including forks (#141)
1 parent 3cd4d28 commit b0ec123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pytest_matrix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
name: Pytest (All, Python ${{ matrix.python-version }}, ${{ matrix.os }})
2424
# Don't run on forks. Run on pushes to main, and on PRs that are not from forks.
2525
if: >
26-
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
27-
(github.event.pull_request.head.repo.fork == false)
26+
github.event_name == 'pull_request' ||
27+
(github.event_name == 'push' && github.ref == 'refs/heads/main')
2828
strategy:
2929
matrix:
3030
python-version: [

0 commit comments

Comments
 (0)