Skip to content

Commit 735fa1b

Browse files
committed
ci: Only run workflows if necessary
1 parent 3364fae commit 735fa1b

5 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/build_windows_macos.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ on:
66
workflow_dispatch:
77
push:
88
paths:
9-
- '**/*.py' # Watch for changes in any Python files
9+
- '**/*.py' # Watch for changes in any Python files
10+
- 'pyproject.toml'
11+
- 'windows/**'
12+
- 'macos/**'
13+
- 'linux/**'
14+
- 'workflows/build_windows_macos.yml' # Re-run build if workflow file itself changes
1015

1116
concurrency:
1217
group: ci-${{github.workflow}}-${{ github.ref }}

.github/workflows/dependency-review.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
#
88
# Source repository: https://github.com/actions/dependency-review-action
99
name: 'Dependency Review'
10-
on: [pull_request]
10+
on:
11+
pull_request:
12+
paths:
13+
- 'pyproject.toml'
14+
- 'renovate.json'
15+
release:
16+
types: [published]
1117

1218
permissions:
1319
contents: read

.github/workflows/mypy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
- '**/*.py' # Watch for changes in any Python files
1111
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
1212
workflow_dispatch:
13-
release:
14-
types: [published]
1513

1614
concurrency:
1715
group: ci-${{github.workflow}}-${{ github.ref }}

.github/workflows/pylint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
- '**/*.py' # Watch for changes in any Python files
1111
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
1212
workflow_dispatch:
13-
release:
14-
types: [published]
1513

1614
concurrency:
1715
group: ci-${{github.workflow}}-${{ github.ref }}

.github/workflows/ruff.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
- '**/*.py' # Watch for changes in any Python files
1111
- 'pyproject.toml' # Watch for changes in the pyproject.toml file
1212
workflow_dispatch:
13-
release:
14-
types: [published]
1513

1614
concurrency:
1715
group: ci-${{github.workflow}}-${{ github.ref }}

0 commit comments

Comments
 (0)