From b822fe432c55ffbf2733075eb01d352ba15c127f Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 9 Jan 2024 01:43:43 -0600 Subject: [PATCH] ci: only run tests when source changes --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d8ea5b8..428bbe2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,13 @@ name: 🧪 Run Tests on: pull_request: - push: workflow_call: workflow_dispatch: + push: + - paths: + - 'src/**/*.py' + - 'tests/**/*.py' + - 'pyproject.toml' jobs: run-tests: