diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml index 5be17f157..70dd734e7 100644 --- a/.github/workflows/python-lint.yml +++ b/.github/workflows/python-lint.yml @@ -10,6 +10,23 @@ jobs: flake8-lint: runs-on: ubuntu-latest name: Lint + if: | + github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3' + || ( + github.event.schedule + && github.repository_owner == 'ggerganov' + ) + || github.event.pull_request + || github.head_ref == 'master' + || ( + github.event.push + && github.event.push.ref == 'refs/heads/master' + && github.repository_owner == 'ggerganov' + ) + || ( + !github.event.push + && github.ref_name == 'master' + ) steps: - name: Check out source repository uses: actions/checkout@v4