ci: run Python workflow only when relevant files change
Limit GitHub Actions workflow triggers to changes in .py files, requirements.txt, setup.py, or pyproject.toml to avoid unnecessary builds.
This commit is contained in:
parent
79642a48da
commit
5db4d40076
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -4,9 +4,19 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '**.py'
|
||||
- 'requirements.txt'
|
||||
- 'pyproject.toml'
|
||||
- 'setup.py'
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- '**.py'
|
||||
- 'requirements.txt'
|
||||
- 'pyproject.toml'
|
||||
- 'setup.py'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
Loading…
x
Reference in New Issue
Block a user