From 8d2f95c1ffc8aad5f443124d224eb02899dd14ab Mon Sep 17 00:00:00 2001 From: Franck FERMAN Date: Fri, 27 Oct 2023 01:33:31 +0000 Subject: [PATCH] Action triggered only if test file modified. --- .github/workflows/unittest.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 7842d5b..30a9f8d 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -2,11 +2,13 @@ name: unittest on: push: - branches: - - stable + branches: [ "stable" ] + paths: + - 'tests/test_MetaDetective.py' pull_request: - branches: - - stable + branches: [ "stable" ] + paths: + - 'tests/test_MetaDetective.py' jobs: unittest: @@ -23,4 +25,3 @@ jobs: - name: Run Unit Tests run: python -m unittest discover tests -p '*test*.py' -