Skip to content

Commit c25debd

Browse files
committed
[1/7] config boundary
1 parent 91fe837 commit c25debd

19 files changed

Lines changed: 4167 additions & 312 deletions

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out repository
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.11"
18+
19+
- name: Install package and CI dependencies
20+
shell: bash
21+
run: |
22+
python -m pip install --upgrade pip
23+
python -m pip install --no-deps -e .
24+
python - <<'PY'
25+
import pathlib
26+
import subprocess
27+
import sys
28+
import tomllib
29+
30+
data = tomllib.loads(pathlib.Path("pyproject.toml").read_text(encoding="utf-8"))
31+
deps = data["project"]["optional-dependencies"]["ci"]
32+
subprocess.check_call([sys.executable, "-m", "pip", "install", *deps])
33+
PY
34+
35+
- name: Run tests
36+
run: pytest

.gitignore

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
.venv/
2+
.venv-*/
23
.ruff_cache/
4+
.pytest_cache/
5+
.mypy_cache/
36
tmp/
47
iic/
5-
vibemouse.egg-info/
8+
build/
9+
dist/
10+
*.egg-info/
611
__pycache__/
7-
*.pyc
12+
*.py[cod]
13+
14+
# Temporary platform port-integration snapshots kept under repo root
15+
/windows-port/
16+
/windows-port-*/

docs/STEP1_PR_SPLIT_PLAN.zh-CN.md

Lines changed: 693 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)