Skip to content

fix(ci): skip no-commit-to-branch hook in CI #3

fix(ci): skip no-commit-to-branch hook in CI

fix(ci): skip no-commit-to-branch hook in CI #3

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install -e ".[dev]"
- run: ruff check .
- run: ruff format --check .
- uses: pre-commit/action@v3.0.1
env:
SKIP: no-commit-to-branch
test:
name: test (py${{ matrix.python-version }})
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install -e ".[dev]"
- run: pytest --cov --cov-fail-under=100