Skip to content

build(deps): bump the pip-version-updates group across 1 directory with 2 updates #290

build(deps): bump the pip-version-updates group across 1 directory with 2 updates

build(deps): bump the pip-version-updates group across 1 directory with 2 updates #290

Workflow file for this run

# Copyright (c) Microsoft Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: lint
on:
push:
branches: [main]
pull_request:
branches: [main, release-**]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: {}
jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Test version derivation
run: ./.pipelines/scripts/tests/test-get-version.sh
- name: Test Helm chart publication
run: ./.pipelines/scripts/tests/test-helm-publication.sh
- name: Test release package assembly
run: ./.pipelines/scripts/tests/test-prepare-package-artifacts.sh
- name: Test candidate image publication and archives
run: ./.pipelines/scripts/tests/test-candidate-images.sh
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.13'
- name: Install pre-commit
run: >-
python -m pip install
--disable-pip-version-check
--require-hashes
-r .github/workflows/linter-requirements.txt
# Cache the installed hook environments (keyed on the config) so repeat
# runs skip re-provisioning each hook toolchain.
- name: Cache pre-commit hooks
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: |
pre-commit-${{ runner.os }}-
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure --color=always