diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml new file mode 100644 index 00000000..92c8efbb --- /dev/null +++ b/.github/workflows/dev.yml @@ -0,0 +1,46 @@ +# Copyright 2026 Columnar Technologies Inc. +# +# 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: Dev + +on: + pull_request: {} + push: + branches: + - main + +permissions: + contents: read + +jobs: + pre-commit-hooks: + name: Run pre-commit hooks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 + with: + python-version: '3.x' + + - name: Install pre-commit + run: pip install pre-commit + + - name: Cache pre-commit + uses: actions/cache@v5 + with: + path: ~/.cache/pre-commit + key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} + + - name: Run pre-commit + run: pre-commit run --all-files --color=always --show-diff-on-failure --verbose diff --git a/.github/workflows/dev_pr.yml b/.github/workflows/dev_pr.yml index a91820b5..070d5bd7 100644 --- a/.github/workflows/dev_pr.yml +++ b/.github/workflows/dev_pr.yml @@ -38,23 +38,3 @@ jobs: - name: Check PR title follows conventional commits spec run: | echo "${{ github.event.pull_request.title }}" | npx commitlint --extends @commitlint/config-conventional - pre-commit-hooks: - name: Run pre-commit hooks - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - uses: actions/setup-python@v6 - with: - python-version: '3.x' - - - name: Install pre-commit - run: pip install pre-commit - - - name: Cache pre-commit - uses: actions/cache@v5 - with: - path: ~/.cache/pre-commit - key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} - - - name: Run pre-commit - run: pre-commit run --all-files --color=always --show-diff-on-failure --verbose