30 lines
825 B
YAML
30 lines
825 B
YAML
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 --upgrade pip
|
|
pip install click rich jinja2 pyyaml pathspec tomli pytest pytest-cov tree-sitter tree-sitter-languages
|
|
- name: Install VibeGuard
|
|
run: |
|
|
pip install -e .
|
|
- name: Install Tree-sitter languages
|
|
run: |
|
|
pip install tree-sitter-languages
|
|
- name: Run tests
|
|
run: |
|
|
pytest tests/unit/test_patterns.py tests/unit/test_analyzers.py tests/integration/test_cli.py tests/integration/test_reports.py -v --cov=vibeguard
|