Skip to content

chore: ignore editor backup files (*~ and .*.un~) #32

chore: ignore editor backup files (*~ and .*.un~)

chore: ignore editor backup files (*~ and .*.un~) #32

Workflow file for this run

name: CI
on:
push:
branches:
- main
- "feat/*"
- "fix/*"
- "docs/*"
- "refactor/*"
- "chore/*"
- "ci/*"
- "test/*"
- "perf/*"
- "style/*"
- "build/*"
pull_request:
branches: [main]
jobs:
lint-pr-title:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Check PR title follows conventional commits
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "PR title: $PR_TITLE"
if ! echo "$PR_TITLE" | grep -qP '^(feat|fix|perf|refactor|docs|style|test|chore|ci|build)(\(.+\))?(!)?: .+'; then
echo "ERROR: PR title must follow Conventional Commits format."
echo "Examples: 'feat: add plugin registry', 'fix(broker): handle empty dataframe', 'feat!: breaking api change'"
echo "See https://www.conventionalcommits.org"
exit 1
fi
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Lint
run: ruff check .
- name: Format check
run: ruff format --check .
- name: Type check
run: mypy
- name: Tests and coverage
run: pytest
env:
PYTHONPATH: "."