Skip to content

Commit d65dd4f

Browse files
MHHukiewitzhoh
authored andcommitted
Problem: build-wheels.yml and pytest-docker.yml would not trigger if a PR was created from a forked repo
Solution: Trigger all the workflows on direct pushes to main and on any PR to main
1 parent 7342f9d commit d65dd4f

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/build-wheels.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Build source and wheel packages
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
410

511
jobs:
612
build:

.github/workflows/code-quality.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Test code quality
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
410

511
jobs:
612
code-quality:

.github/workflows/pytest-docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Test using Pytest in Docker
22

33
on:
4+
push:
5+
branches:
6+
- main
47
pull_request:
58
branches:
69
- main

0 commit comments

Comments
 (0)