| name: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| 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 -r requirements.txt | |
| pip install pytest pytest-asyncio | |
| - name: Run tests | |
| env: | |
| LLM_PROVIDER: mock | |
| run: pytest -v --tb=short | |
| - name: Lint | |
| run: | | |
| pip install ruff | |
| ruff check . | |