From: Dimitri Savineau Date: Fri, 2 Oct 2020 16:14:36 +0000 (-0400) Subject: flake8: run the workflow conditionally X-Git-Tag: v4.0.37~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=540c497ec6abea297e08dc3f193f4ba9e53e5927;p=ceph-ansible.git flake8: run the workflow conditionally We don't need to run flake8 on ansible modules and their tests if we don't have any modifitions. Signed-off-by: Dimitri Savineau (cherry picked from commit 00b7ee27df59fb0d5a537f6c0ad11c910695126d) --- diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index ead3a9912..6814b2dd1 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -1,5 +1,11 @@ name: flake8 -on: [pull_request] +on: + pull_request: + paths: + - 'library/**.py' + - 'tests/conftest.py' + - 'tests/library/**.py' + - 'tests/functional/tests/**.py' jobs: build: runs-on: ubuntu-latest