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:
Slipstream 2025-06-11 16:08:25 -06:00
parent 79642a48da
commit 5db4d40076
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -4,9 +4,19 @@ on:
push: push:
branches: branches:
- master - master
paths:
- '**.py'
- 'requirements.txt'
- 'pyproject.toml'
- 'setup.py'
pull_request: pull_request:
branches: branches:
- master - master
paths:
- '**.py'
- 'requirements.txt'
- 'pyproject.toml'
- 'setup.py'
jobs: jobs:
build: build: