]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
flake8: run the workflow conditionally
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 2 Oct 2020 16:14:36 +0000 (12:14 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 19 Oct 2020 17:33:30 +0000 (13:33 -0400)
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 <dsavinea@redhat.com>
(cherry picked from commit 00b7ee27df59fb0d5a537f6c0ad11c910695126d)

.github/workflows/flake8.yml

index ead3a9912bf7272f4d12d6d95ae5fc01c56cd0d2..6814b2dd132c8019168a1ef4abdf4100c7f78a21 100644 (file)
@@ -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