Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

add CI workflow

add CI workflow #10

Workflow file for this run

name: CI
on:
pull_request:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.2"
- name: Static code check
run: uv run poe checker
- name: Check docs build
working-directory: ./docs
run: |
uv sync --group docs
make html
- name: Check PR title style
uses: actions/github-script@v7
with:
script: |
const title = context.payload.pull_request.title;
const labels = context.payload.pull_request.labels.map(l => l.name);
if (labels.includes('dev')) {
console.log('Skipping PR title check due to dev label.');
return;
}
const regex = /^(feat|fix|refactor|doc|perf|style|test|chore|revert)!?:[ ][a-z].*$/;
if (!regex.test(title)) {
core.setFailed(
`PR title "${title}" does not match the expected conventional commit format`
);
}