Skip to content

Commit bba9e50

Browse files
committed
Simplify GitHub Actions workflow configs so they run on any push or PR instead of only ones to specific branches
I like getting to see the output of CI tools while I develop on a branch and suspect that will be handy for others as well.
1 parent 6bf3a2a commit bba9e50

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@
22
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
33
name: CI
44

5-
on:
6-
push:
7-
branches:
8-
- master
9-
- 2.0
10-
pull_request:
11-
branches:
12-
- master
13-
- 2.0
5+
on: [push, pull_request]
146

157
env:
168
PYTHON_LATEST: 3.9

.github/workflows/doc.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@
22
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
33
name: Doc
44

5-
on:
6-
push:
7-
branches:
8-
- master
9-
- 2.0
10-
pull_request:
11-
branches:
12-
- master
13-
- 2.0
5+
on: [push, pull_request]
146

157
env:
168
PYTHON_LATEST: 3.9

.github/workflows/lint.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,7 @@
22
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
33
name: Lint
44

5-
on:
6-
push:
7-
branches:
8-
- master
9-
- 2.0
10-
pull_request:
11-
branches:
12-
- master
13-
- 2.0
5+
on: [push, pull_request]
146

157
env:
168
PYTHON_LATEST: 3.9

0 commit comments

Comments
 (0)