Skip to content

refactor: Extract BaseClpCursor interface to support upcoming IR integration. #358

refactor: Extract BaseClpCursor interface to support upcoming IR integration.

refactor: Extract BaseClpCursor interface to support upcoming IR integration. #358

# Copyright (c) Facebook, Inc. and its affiliates.
#
# 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: Run Checks
on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize
push: {}
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.repository }}-${{ github.head_ref || github.sha }}
cancel-in-progress: ${{github.ref != 'refs/heads/presto-0.293-clp-connector'}}
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- run: python -m pip install pre-commit
- uses: actions/checkout@v4
with:
fetch-depth: 2
persist-credentials: false
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: |
pre-commit-
- name: Run pre-commit
env:
GH_TOKEN: ${{ github.token }}
run: |
files=$(git diff --name-only HEAD^1 HEAD)
echo "::group::Changed files"
echo $files | tr ' ' '\n'
echo "::endgroup::"
pre-commit run --show-diff-on-failure --color=always --files $files