Files
EnvBao/.gitea/workflows/test.yml
T
mattandClaude Sonnet 5.5 952fa2ce63 Add Claude access setup, onedir build and native packages
- scripts/setup_claude_access.py: narrow envbao-claude policy/token and an
  exec_only claude.toml; optional merge of Claude Code settings
- [security] exec_only refuses plain export mode and --no-redact
- PyInstaller onedir build (~0.06s start-up vs ~1.4s onefile)
- macOS .pkg, Debian/Ubuntu/Raspberry Pi OS .deb (pure-Python builder),
  tarball + scripts/install.sh; release pipeline updated
- docs: claude-access, install matrix, releasing, usage, security

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 11:57:47 +01:00

32 lines
842 B
YAML

name: test
on:
push:
branches: ["**"]
pull_request:
jobs:
test:
# Label of a Linux act_runner; see docs/releasing.md
runs-on: linux-amd64
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.13"
- name: Install dependencies
run: uv sync --all-groups --frozen
- name: Lint
run: |
uv run ruff check .
uv run ruff format --check .
- name: Type check
run: uv run mypy
- name: Tests (coverage must stay >= 90%)
run: uv run pytest --cov --cov-report=term-missing
- name: Build smoke test
run: |
uv run pyinstaller envbao.spec --clean --noconfirm
./dist/envbao/envbao --version
python3 scripts/packaging/build_deb.py 0.0.0 amd64 dist out