diff --git a/.github/workflows/linter.yml b/.github/workflows/pre-commit.yml similarity index 92% rename from .github/workflows/linter.yml rename to .github/workflows/pre-commit.yml index 6da53bb03e..3796d7726c 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/pre-commit.yml @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -name: Lint +name: pre-commit on: [pull_request] @@ -36,7 +36,7 @@ jobs: - name: Install run: | python -m pip install --upgrade pip - pip install pre-commit + pip install -r requirements-dev.txt - name: Set PY run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV - uses: actions/cache@v4 @@ -44,4 +44,4 @@ jobs: path: ~/.cache/pre-commit key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} - name: Run pre-commit - run: pre-commit run --all-files + run: pre-commit run --color=always --all-files