From 5db4d4007622dc127e99cd281afcae1cf9a4f5ea Mon Sep 17 00:00:00 2001 From: Slipstream Date: Wed, 11 Jun 2025 16:08:25 -0600 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c962b73..17ecb8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: