Files
local-code-assistant/.gitea/workflows/ci.yml
2026-01-31 16:24:42 +00:00

34 lines
927 B
YAML

# CI workflow for Local Code Assistant
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -e ".[dev]"
- name: Build and verify
run: |
python -m py_compile local_code_assistant/cli.py
python -m py_compile local_code_assistant/commands/*.py
python -m py_compile local_code_assistant/services/*.py
python -m py_compile local_code_assistant/utils/*.py
python -m py_compile local_code_assistant/prompts/*.py
- name: Run tests
run: pytest tests/ -v --tb=short
- name: Run linter
run: ruff check .
- name: Run type checker
run: mypy local_code_assistant/