diff --git a/.github/workflows/python_lint.yml b/.github/workflows/python_lint.yml index 45dbe4f3..9ace5c64 100644 --- a/.github/workflows/python_lint.yml +++ b/.github/workflows/python_lint.yml @@ -2,11 +2,10 @@ name: python_lint on: push: - paths: - - '**.py' + branches: "**" pull_request: - paths: - - '**.py' + types: [opened, reopened, synchronize, closed] + branches: "**" jobs: flake8_py3: @@ -19,6 +18,8 @@ jobs: architecture: x64 - name: Checkout PyTorch uses: actions/checkout@master + with: + fetch-depth: 0 - name: Install flake8 run: pip install flake8 - name: Check for Python file changes @@ -40,6 +41,8 @@ jobs: steps: - name: Setup uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Install black in jupyter run: pip install black[jupyter] - name: Check for Python file changes