From 51d6fb576633f6917ac2d927a6257048b7af847c Mon Sep 17 00:00:00 2001 From: Dom Batten Date: Fri, 21 Apr 2023 17:28:07 +0100 Subject: [PATCH] only run tests workflow when needed - ignore files that don't need tests, e.g. files in `docs/` and `.md` files --- .../.github/workflows/tests.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_name}}/.github/workflows/tests.yml b/{{cookiecutter.project_name}}/.github/workflows/tests.yml index 8a73a8508..8c7f219a8 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/tests.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/tests.yml @@ -1,8 +1,14 @@ name: Tests on: - - push - - pull_request + push: + paths-ignore: + - "docs/**" + - "*.md" + pull_request: + paths-ignore: + - "docs/**" + - "*.md" jobs: tests: