Skip to content

Commit 66b951f

Browse files
committed
cicd: trigger workflows only when it is needed
1 parent 7263cea commit 66b951f

File tree

4 files changed

+32
-54
lines changed

4 files changed

+32
-54
lines changed

.github/workflows/build-pre-release.yml

-49
This file was deleted.

.github/workflows/build-push.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
name: Build and upload to PyPi
22

3-
on: [push, pull_request]
4-
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'branch-**'
8+
pull_request:
9+
paths-ignore:
10+
- docs/*
11+
- examples/*
12+
- scripts/*
13+
- .gitignore
14+
- '*.rst'
15+
- '*.ini'
16+
- LICENSE
17+
- .github/dependabot.yml
18+
- .github/pull_request_template.md
19+
workflow_dispatch:
520

621
env:
722
CIBW_TEST_COMMAND_LINUX: >

.github/workflows/docs-pr.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ on:
66
pull_request:
77
branches:
88
- master
9+
- 'branch-**'
910
paths:
1011
- "docs/**"
12+
workflow_dispatch:
1113

1214
jobs:
1315
build:

.github/workflows/integration-tests.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
name: Integration tests
22

33
on:
4-
pull_request:
5-
branches:
6-
- master
74
push:
85
branches:
96
- master
7+
- 'branch-**'
8+
pull_request:
9+
paths-ignore:
10+
- docs/*
11+
- examples/*
12+
- scripts/*
13+
- .gitignore
14+
- '*.rst'
15+
- '*.ini'
16+
- LICENSE
17+
- .github/dependabot.yml
18+
- .github/pull_request_template.md
19+
workflow_dispatch:
1020

1121
jobs:
1222
tests:

0 commit comments

Comments
 (0)