diff --git a/.github/workflows/autolint.yml b/.github/workflows/lint.yml similarity index 83% rename from .github/workflows/autolint.yml rename to .github/workflows/lint.yml index 230771a..20c35d6 100644 --- a/.github/workflows/autolint.yml +++ b/.github/workflows/lint.yml @@ -1,20 +1,27 @@ --- -name: AutoLint +name: Lint on: push: branches: [main, stable, latest] + paths: + - '**.py' + - '**.yml' + - '.github/workflows/lint.yml' + - 'requirements_lint.txt' pull_request: branches: [main, stable, latest] + paths: + - '**.py' + - '**.yml' + - '.github/workflows/lint.yml' + - 'requirements_lint.txt' jobs: build: - strategy: - matrix: - python-version: [3.10] runs-on: ubuntu-latest - + timeout-minutes: 2 steps: - name: Checkout uses: actions/checkout@v3