25 lines
604 B
YAML
25 lines
604 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
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
|
|
run: |
|
|
pip install -e .
|
|
pip install pytest pytest-asyncio
|
|
- name: Verify install
|
|
run: |
|
|
python -c "from snip.db import get_database; print('DB import OK')"
|
|
python -c "from snip.cli import cli; print('CLI import OK')"
|
|
- name: Test
|
|
run: |
|
|
pytest tests/ -v --tb=short 2>&1 | head -100 |