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 <dsavinea@redhat.com>
pull/5783/head
Dimitri Savineau 2020-10-02 12:14:36 -04:00 committed by Guillaume Abrioux
parent 8596f1d52c
commit 00b7ee27df
1 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,11 @@
name: flake8 name: flake8
on: [pull_request] on:
pull_request:
paths:
- 'library/**.py'
- 'tests/conftest.py'
- 'tests/library/**.py'
- 'tests/functional/tests/**.py'
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest