Files
shell-history-semantic-search/.gitea/workflows/ci.yml

28 lines
775 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: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests
run: |
pytest tests/test_embeddings.py tests/test_search.py tests/test_cli.py tests/test_parsers.py tests/conftest.py -v --tb=short
- name: Run linting
run: |
pip install ruff
ruff check src/shell_history_search/ tests/test_embeddings.py tests/test_search.py tests/test_cli.py tests/test_parsers.py tests/conftest.py