]> git-server-git.apps.pok.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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 6 Oct 2020 06:00:58 +0000 (08:00 +0200)
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>
.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