Skip to content

Commit 99c9bae

Browse files
committed
Workflow fix again, open PR and run tests before merge
1 parent 5d7a4ab commit 99c9bae

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
name: CI Workflow
22

3-
# Trigger the workflow when pushing to main (includes PR merges)
3+
# Trigger the workflow when pushing to main (includes PR merges) or on PR events
44
on:
55
push:
66
branches:
77
- main
8+
pull_request:
9+
branches:
10+
- main
11+
types:
12+
- opened
13+
- synchronize
14+
- reopened
815

916
# Define the jobs to run in the workflow
1017
jobs:
@@ -40,6 +47,7 @@ jobs:
4047
pytest
4148
4249
- name: Commit and push the generated .dylib file
50+
if: github.ref == 'refs/heads/main'
4351
run: |
4452
git config --local user.name "GitHub Action"
4553
git config --local user.email "action@github.com"

0 commit comments

Comments
 (0)